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
…281)

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

GUS-W-16159740
  • Loading branch information
dzuelke authored Jul 3, 2024
1 parent a73af0b commit b6b972f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
name: Update Go Inventory
runs-on: pub-hk-ubuntu-22.04-small
steps:
- 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 Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
id: pr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.app_token }}
token: ${{ steps.generate-token.outputs.token }}
title: "Update Go Inventory"
commit-message: "Update Inventory for heroku/go\n\n${{ steps.rebuild-inventory.outputs.msg }}"
committer: ${{ vars.LINGUIST_GH_APP_USERNAME }} <${{ vars.LINGUIST_GH_APP_EMAIL }}>
Expand All @@ -57,5 +57,5 @@ jobs:
- name: Configure PR
if: steps.pr.outputs.pull-request-operation == 'created'
env:
GH_TOKEN: ${{ steps.generate-token.outputs.app_token }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: gh pr merge --squash --auto "${{ steps.pr.outputs.pull-request-number }}"

0 comments on commit b6b972f

Please sign in to comment.