From 8abbea761bb7f6da801676a5c71030b3db7dda7f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 1 Dec 2022 12:25:00 +0100 Subject: [PATCH] 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. --- .github/workflows/trigger-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger-release.yml b/.github/workflows/trigger-release.yml index 02f96aaa..51289b2d 100644 --- a/.github/workflows/trigger-release.yml +++ b/.github/workflows/trigger-release.yml @@ -10,6 +10,7 @@ jobs: name: Trigger Release runs-on: ubuntu-latest timeout-minutes: 10 + environment: trigger_release steps: - uses: actions/checkout@v3 @@ -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 }}