Skip to content

Commit

Permalink
chore: update usage of github app auth flow in github release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smallTrogdor authored Jun 6, 2024
1 parent faf3d5e commit c7a2eaa
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:

outputs:
tag_name: ${{ steps.read-changelog.outputs.version }}
token: ${{ steps.app-token.outputs.token }}

steps:
- name: Generate token from github app.
Expand Down Expand Up @@ -40,16 +39,23 @@ jobs:
runs-on: ubuntu-latest
needs: create-tag
steps:
- name: Generate token from github app.
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APPBAKERYGITHUBAPP_APPID }}
private-key: ${{ secrets.APPBAKERYGITHUBAPP_PRIVATEKEY }}


- name: Clone Repository
uses: actions/checkout@v4
with:
token: ${{ needs.create-tag.outputs.token }}
token: ${{ steps.app-token.outputs.token }}
ref: refs/tags/${{ needs.create-tag.outputs.tag_name }}


- name: Create GitHub Releases based on changelog
uses: taiki-e/[email protected]
with:
token: ${{ needs.create-tag.outputs.token }}
token: ${{ steps.app-token.outputs.token }}
ref: refs/tags/${{ needs.create-tag.outputs.tag_name }}
changelog: ./CHANGELOG.md

0 comments on commit c7a2eaa

Please sign in to comment.