diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 63d6009..c08756a 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -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 }}