diff --git a/.github/workflows/plugin-release.yaml b/.github/workflows/plugin-release.yaml index 754e470..fc464c4 100644 --- a/.github/workflows/plugin-release.yaml +++ b/.github/workflows/plugin-release.yaml @@ -310,6 +310,13 @@ jobs: git push origin "$BRANCH" git push origin "refs/tags/v${VERSION}" + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ secrets.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: @@ -318,14 +325,7 @@ jobs: fail_on_unmatched_files: false generate_release_notes: true env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Generate GitHub App token - id: app-token - uses: actions/create-github-app-token@v3 - with: - app-id: ${{ secrets.RELEASE_APP_ID }} - private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Install GitHub CLI run: |