Skip to content

Commit

Permalink
Feat/tag workflow (#21)
Browse files Browse the repository at this point in the history
* Auto tag on push to main

* Using a PAT instead so it can trigger other workflows

* Using a PAT instead so it can trigger other workflows
  • Loading branch information
donhector authored Nov 22, 2021
1 parent c15f32c commit a2ed99f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
workflow_dispatch:
jobs:
build:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -14,5 +14,8 @@ jobs:
- name: Bump and push tag
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 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

0 comments on commit a2ed99f

Please sign in to comment.