From 38fafcc07f4bce3aed2523299a430b4810248f4a Mon Sep 17 00:00:00 2001 From: Mike Verbanic Date: Thu, 24 Oct 2024 10:43:56 -0400 Subject: [PATCH] fix: retrying new release logic --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea3ebea..49945b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,9 @@ name: 'Release' on: workflow_call: + secrets: + ACTIONS_BOT_TOKEN: + required: true jobs: release: @@ -17,6 +20,7 @@ jobs: - name: 'Get previous release tag' uses: 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7 with: + github-token: '${{ secrets.ACTIONS_BOT_TOKEN }}' script: |- try { const latestRelease = await github.rest.repos.getLatestRelease({ @@ -35,6 +39,7 @@ jobs: - name: 'Create release' uses: 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' # ratchet:actions/github-script@v7 with: + github-token: '${{ secrets.ACTIONS_BOT_TOKEN }}' script: |- const tag = "v" + process.env.NEW_VERSION;