Replace archived action with actions/create-github-app-token@v2 (#3652)

This commit is contained in:
Bart Louwers
2025-07-24 11:48:39 +02:00
committed by GitHub
parent f332198c86
commit 173ecdb103
3 changed files with 22 additions and 14 deletions

View File

@@ -100,12 +100,12 @@ jobs:
id: get-pr-number
- name: Generate token
uses: actions/create-github-app-token@v2
id: generate_token
uses: tibdex/github-app-token@v2
with:
revoke: false # revoking will fail for long running workflows, because the token will already have expired
app_id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private_key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
skip-token-revoke: true # revoking will fail for long running workflows, because the token will already have expired
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
- name: Check if comment on PR contains '!benchmark android'
if: matrix.test.name == 'Android Benchmark' && steps.get-pr-number.outputs.pr-number
@@ -203,11 +203,11 @@ jobs:
- name: Generate another token (previous one could have expired)
if: always()
uses: actions/create-github-app-token@v2
id: generate_token_2
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private_key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
- uses: LouisBrunner/checks-action@v2.0.0
if: always()

View File

@@ -333,11 +333,11 @@ jobs:
# needed to trigger workflow for Swift Package Index release
- name: Generate token
if: env.make_release
uses: actions/create-github-app-token@v2
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private_key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
- name: Release (Swift Package Index)
if: env.make_release

View File

@@ -24,11 +24,11 @@ jobs:
- uses: actions/checkout@v4
- name: Generate token
uses: actions/create-github-app-token@v2
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private_key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
- uses: LouisBrunner/checks-action@v2.0.0
id: create_check
@@ -72,10 +72,18 @@ jobs:
./scripts/aws-device-farm/aws-device-farm-run.sh
- name: Generate another token (previous one could have expired)
if: always()
uses: actions/create-github-app-token@v2
id: generate_token_2
with:
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
- uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
token: ${{ steps.generate_token.outputs.token }}
token: ${{ steps.generate_token_2.outputs.token }}
check_id: ${{ steps.create_check.outputs.check_id }}
conclusion: ${{ job.status }}
sha: ${{ github.event.workflow_run.sha }}