Skip to content

Commit

Permalink
ci(tag): calculate tag version from commit messages (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
donhector authored Nov 29, 2021
1 parent 3c9ecb8 commit f158e62
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump and push tag
uses: anothrNick/github-tag-action@1.36.0
env:
# A tag pushed with ${{ secrets.GITHUB_TOKEN }} won't have enough permissions
# to trigger other workflows (ie. release.yml)
# See https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/7
GITHUB_TOKEN: ${{ secrets.PAT_REPO_FULL }}
WITH_V: true

# The following actions calculates the next version based on the conventional commit messages
# Since a tag pushed with ${{ secrets.GITHUB_TOKEN }} won't have enough permissions
# to trigger other workflows (ie. release.yml), we have to use our own PAT
# See https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/7
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.PAT_REPO_FULL }}

0 comments on commit f158e62

Please sign in to comment.