Skip to content

Commit

Permalink
Fix: releases created with GITHUB_TOKEN don't create release event
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phil-opp committed Dec 1, 2022
1 parent da32bb4 commit 8abbea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/trigger-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
name: Trigger Release
runs-on: ubuntu-latest
timeout-minutes: 10
environment: trigger_release

steps:
- uses: actions/checkout@v3
Expand All @@ -20,4 +21,4 @@ jobs:
- name: "Run release script"
run: "python3 .github/workflows/trigger-release/trigger-release.py"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RUST_OSDEV_AUTORELEASE_TOKEN }}

0 comments on commit 8abbea7

Please sign in to comment.