Skip to content

Commit ded462d

Browse files
Fix the release by supplying a pat (#3156)
The standard GITHUB_TOKEN does not trigger workflows on tag pushes
1 parent f4e2922 commit ded462d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/trigger_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
release:
1111
runs-on: ubuntu-latest
1212

13+
environment: trigger-release
14+
1315
steps:
1416
- name: Checkout (with tags)
1517
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
@@ -19,14 +21,14 @@ jobs:
1921
fetch-tags: true
2022
# We need the credentials to push the tag
2123
persist-credentials: true
24+
# The standard GITHUB_TOKEN creates no workflow on pushes. That prevents the tag not triggering a release
25+
token: ${{ secrets.PUSH_PAT }}
2226

2327
- name: Configure git author
2428
run: |
2529
git config user.name "${GITHUB_ACTOR}"
2630
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
2731
2832
- name: Run release script (non-interactive)
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3133
run: |
3234
./scripts/release.main.kts --no-confirm

0 commit comments

Comments
 (0)