From 985b48232330cb3bbe3fef61936f62a526263882 Mon Sep 17 00:00:00 2001 From: John McBride Date: Tue, 20 Aug 2024 09:52:36 -0600 Subject: [PATCH] fix: Generates a token so the open-sauce bot can push to beta (#313) Signed-off-by: John McBride --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf2ee412..956d61c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,11 +56,20 @@ jobs: - build runs-on: ubuntu-latest timeout-minutes: 10 + steps: + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.OS_GITHUB_APP_ID }} + private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }} + steps: - name: "☁️ checkout repository" uses: actions/checkout@v3 with: fetch-depth: 0 + token: ${{ steps.generate_token.outputs.token }} - name: "📂 download build artifacts" uses: actions/download-artifact@v2 @@ -70,9 +79,9 @@ jobs: - name: "🚀 release" id: semantic-release - uses: open-sauced/release@v2.1.1 + uses: open-sauced/release@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} cleanup: name: Cleanup actions