Skip to content

Commit

Permalink
Address missing GitHub App token
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Nov 20, 2023
1 parent 364479e commit 6c1674c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,24 @@ env:
HOTFIX_RELEASE: ${{ inputs.hotfix }}

jobs:
generate-token:
runs-on: ubuntu-latest
outputs:
token: ${{ steps.generate-token.outputs.token }}
steps:
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
with:
app_id: ${{ vars.AUTOMATION_APP_ID }}
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}

prepare-release:
outputs:
pull-request-head-sha: ${{ steps.determine-pr-head-sha.outputs.pull-request-head-sha }}
name: "Prepare release"
if: github.event_name == 'workflow_dispatch'
needs: generate-token
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -146,7 +159,7 @@ jobs:
- name: Create release PR
env:
GITHUB_TOKEN: ${{ secrets.ACTION_DISPATCH_TOKEN }}
GITHUB_TOKEN: ${{ needs.generate-token.outputs.token }}
run: |
gh pr create \
-R $GITHUB_REPOSITORY \
Expand Down

0 comments on commit 6c1674c

Please sign in to comment.