Skip to content

Commit

Permalink
ci: Use GitHub App token to run release-please job (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanoni authored Jun 21, 2024
1 parent 6b04dc2 commit 953c592
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ on:
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
permissions: {}
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
steps:
- id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- id: release-please
uses: google-github-actions/release-please-action@v4
uses: googleapis/release-please-action@v4
with:
token: ${{ steps.app-token.outputs.token }}
publish-artifacts:
needs: release-please
if: needs.release-please.outputs.release_created
Expand Down

0 comments on commit 953c592

Please sign in to comment.