From 8eee2d97b1a9caba550e3542def1754e98a95df8 Mon Sep 17 00:00:00 2001 From: 1xstj <106580853+1xstj@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:55:31 +0000 Subject: [PATCH] test release with custom token --- .github/workflows/pre-release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 74ebcee2..b058b33c 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - trigger-binary-on-release jobs: create-pre-release: @@ -22,10 +23,19 @@ jobs: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT + # Generating a GitHub token, so that PRs and tags created by + # the release-plz-action can trigger actions workflows. + - name: Generate GitHub token + uses: actions/create-github-app-token@v1 + id: generate-token + with: + app-id: ${{ secrets.WEBB_SPIDER_APP_ID }} + private-key: ${{ secrets.WEBB_SPIDER_PRIV_KEY }} + - name: Create pre-release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} with: tag_name: ${{ steps.commit_info.outputs.sha_short }} release_name: Tangle Pre-release ${{ steps.commit_info.outputs.sha_short }}