Skip to content

Commit

Permalink
fix: Generates a token so the open-sauce bot can push to beta (#313)
Browse files Browse the repository at this point in the history
Signed-off-by: John McBride <john@opensauced.pizza>
  • Loading branch information
jpmcb authored Aug 20, 2024
1 parent e342847 commit 985b482
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 985b482

Please sign in to comment.