Skip to content

Commit

Permalink
ci: use official create-github-app-token action
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Jul 22, 2024
1 parent 4458d58 commit 236b8bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
# `APP_PRIVATE_KEY` ("Generate a private key").
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- run: |
echo "Version bump: $BUMP"
Expand All @@ -54,11 +54,13 @@ jobs:
git config --global user.email "132423234+hydro-project-bot[bot]@users.noreply.github.com"
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Fetch all commit history so smart-release can generate changelogs.
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false

- name: Push test commit
run: |
Expand Down

0 comments on commit 236b8bc

Please sign in to comment.