Skip to content

Commit 642b3db

Browse files
committed
Auto-publish tag: use PAT to push the release train branch
These branches contain workflows, therefore it requires the `workflows` scope to push them, which the regular $GITHUB_TOKEN does not have. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9de29dd commit 642b3db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-tag.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:
15+
token: ${{ secrets.PUSH_RELEASE_TRAINS_PAT }}
1516
fetch-depth: 0
1617
- name: Import public GPG keys to verify the tag
1718
uses: actions/github-script@v3
@@ -78,4 +79,5 @@ jobs:
7879
})
7980
- name: Push to release train branch
8081
if: github.repository_owner == 'git-for-windows'
81-
run: git push origin "$GITHUB_REF^0:refs/heads/$(cat train)"
82+
run: |
83+
git push origin "$GITHUB_REF^0:refs/heads/$(cat train)"

0 commit comments

Comments
 (0)