-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use actions/create-github-app-token instead of heroku/use-app-token
The use-app-token action is deprecated: heroku/use-app-token-action#17 GUS-W-16159715
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -81,7 +81,7 @@ jobs: | |
id: pr | ||
uses: peter-evans/[email protected] | ||
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: | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -69,6 +69,6 @@ jobs: | |
- name: Create GitHub Release | ||
uses: softprops/[email protected] | ||
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 }} |