Skip to content

Commit 8abbea7

Browse files
committed
Fix: releases created with GITHUB_TOKEN don't create release event
See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow : > When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch and repository_dispatch, will not create a new workflow run. We need to trigger the release event though in order to run the cargo publish job. So this commit sets up a personal access token instead.
1 parent da32bb4 commit 8abbea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: .github/workflows/trigger-release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
name: Trigger Release
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 10
13+
environment: trigger_release
1314

1415
steps:
1516
- uses: actions/checkout@v3
@@ -20,4 +21,4 @@ jobs:
2021
- name: "Run release script"
2122
run: "python3 .github/workflows/trigger-release/trigger-release.py"
2223
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.RUST_OSDEV_AUTORELEASE_TOKEN }}

0 commit comments

Comments
 (0)