Skip to content

Commit

Permalink
Merge pull request #2250 from Agenta-AI/add-create-a-tag
Browse files Browse the repository at this point in the history
Add creating a tag after bumping versions
  • Loading branch information
mmabrouk authored Nov 12, 2024
2 parents 3af80cc + d88fb9d commit 8456686
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/bump-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ jobs:
echo "VERSIONS_MATCH=false" >> $GITHUB_OUTPUT
fi
- name: Create and push tag
if: steps.bump_versions.outputs.VERSIONS_MATCH == 'true'
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git tag -a "v${{ steps.bump_versions.outputs.NEW_VERSION }}" -m "Version ${{ steps.bump_versions.outputs.NEW_VERSION }}"
git push origin "v${{ steps.bump_versions.outputs.NEW_VERSION }}"
- name: Create Pull Request
if: steps.bump_versions.outputs.VERSIONS_MATCH == 'true'
uses: peter-evans/create-pull-request@v6
Expand Down

0 comments on commit 8456686

Please sign in to comment.