Skip to content

Commit

Permalink
Use actions/create-github-app-token instead of heroku/use-app-token (#…
Browse files Browse the repository at this point in the history
…838)

The use-app-token action is deprecated: heroku/use-app-token-action#17

GUS-W-16159715
  • Loading branch information
dzuelke committed Jul 3, 2024
1 parent d46718c commit ed91ba6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
runs-on: pub-hk-ubuntu-22.04-small
steps:
- name: Get token for GH application (Linguist)
uses: heroku/use-app-token-action@main
uses: actions/create-github-app-token@v1
id: generate-token
with:
app_id: ${{ vars.LINGUIST_GH_APP_ID }}
private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }}
app-id: ${{ vars.LINGUIST_GH_APP_ID }}
private-key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,7 +35,7 @@ jobs:
ref: main
# Using the GH application token here will configure the local git config for this repo with credentials
# that can be used to make signed commits that are attributed to the GH application user
token: ${{ steps.generate-token.outputs.app_token }}
token: ${{ steps.generate-token.outputs.token }}

- name: Update Rust toolchain
run: rustup update
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
id: pr
uses: peter-evans/create-pull-request@v6.1.0
with:
token: ${{ steps.generate-token.outputs.app_token }}
token: ${{ steps.generate-token.outputs.token }}
title: Prepare release v${{ steps.new-version.outputs.version }}
body: |
Changes:
Expand All @@ -96,4 +96,4 @@ jobs:
if: steps.pr.outputs.pull-request-operation == 'created'
run: gh pr merge --auto --squash "${{ steps.pr.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ steps.generate-token.outputs.app_token }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
runs-on: pub-hk-ubuntu-22.04-small
steps:
- name: Get token for GH application (Linguist)
uses: heroku/use-app-token-action@main
uses: actions/create-github-app-token@v1
id: generate-token
with:
app_id: ${{ vars.LINGUIST_GH_APP_ID }}
private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }}
app-id: ${{ vars.LINGUIST_GH_APP_ID }}
private-key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v4
with:
# Using the GH application token here will configure the local git config for this repo with credentials
# that can be used to make signed commits that are attributed to the GH application user
token: ${{ steps.generate-token.outputs.app_token }}
token: ${{ steps.generate-token.outputs.token }}

- name: Update Rust toolchain
run: rustup update
Expand All @@ -47,7 +47,7 @@ jobs:
exit 1
fi
env:
GH_TOKEN: ${{ steps.generate-token.outputs.app_token }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

- name: Extract changelog entry
id: changelog-entry
Expand All @@ -69,6 +69,6 @@ jobs:
- name: Create GitHub Release
uses: softprops/action-gh-release@v2.0.6
with:
token: ${{ steps.generate-token.outputs.app_token }}
token: ${{ steps.generate-token.outputs.token }}
tag_name: v${{ steps.new-version.outputs.version }}
body: ${{ steps.changelog-entry.outputs.content }}

0 comments on commit ed91ba6

Please sign in to comment.