From 724a9b786b90bb5b1203af531053866a5a318907 Mon Sep 17 00:00:00 2001 From: busma13 Date: Tue, 14 Jan 2025 14:25:14 -0700 Subject: [PATCH] generate an app token to create a release --- .github/workflows/publish-master.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-master.yml b/.github/workflows/publish-master.yml index 0f50f5c0288..a8598ba02aa 100644 --- a/.github/workflows/publish-master.yml +++ b/.github/workflows/publish-master.yml @@ -84,11 +84,19 @@ jobs: echo "version_updated=false" >> $GITHUB_OUTPUT fi + - name: Generate a token + if: steps.version_check.outputs.version_updated == 'true' + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.RELEASES_APP_ID }} + private-key: ${{ secrets.RELEASES_PRIVATE_KEY }} + - name: Create Release if: steps.version_check.outputs.version_updated == 'true' uses: softprops/action-gh-release@v2 with: - token: ${{ secrets.GITHUB_RELEASE_PAT }} + token: ${{ steps.generate-token.outputs.token }} prerelease: true tag_name: ${{ steps.version_check.outputs.tag }} name: ${{ steps.version_check.outputs.tag }}