Skip to content

Commit

Permalink
feat: Add GitHub App token retrieval for beta releases
Browse files Browse the repository at this point in the history
This commit adds a step to retrieve the GitHub App token using the secrets "APP_ID" and "APP_PRIVATE_KEY". The retrieved token is then used as the value for the "GITHUB_TOKEN" environment variable in the semantic release step for beta releases.
  • Loading branch information
realashleybailey committed Nov 6, 2023
1 parent 47bc299 commit d1c3f16
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
# Get the GH_TOKEN from the app
- name: Get GitHub App Token
id: gh_app
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

# Checkout the repo
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -39,7 +47,7 @@ jobs:
- name: Semantic Release for Beta
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.gh_app.outputs.token }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_URL: https://sentry.wizarr.dev
Expand Down

0 comments on commit d1c3f16

Please sign in to comment.