Skip to content

chore(deps): bump ubuntu from jammy-20240227 to jammy-20240416 in /iron #99

chore(deps): bump ubuntu from jammy-20240227 to jammy-20240416 in /iron

chore(deps): bump ubuntu from jammy-20240227 to jammy-20240416 in /iron #99

Workflow file for this run

name: Add git tag
on:
pull_request:
types: [closed]
jobs:
release-candidate:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.title, 'release')
steps:
- name: checkout
uses: actions/checkout@v4
- name: Check CHANGELOG
run: |
if [[ $(grep "${{ steps.release.outputs.version }}" CHANGELOG.md) == "" ]]; then
echo "VERSION MISMATCH"
exit 1
fi
- name: Add tag
if: github.event.pull_request.merged == true
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo $PR_TITLE | grep -e "release.*" || exit 1
git remote set-url origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git tag $(echo $PR_TITLE | sed -E 's/.* (v[0-9\-\.]*)/\1/g')
git tag -l
git push origin --tags