From 173ecdb103a0166ae3b9a3cd0c320f2d5234b9e3 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Thu, 24 Jul 2025 11:48:39 +0200 Subject: [PATCH] Replace archived action with actions/create-github-app-token@v2 (#3652) --- .github/workflows/android-device-test.yml | 14 +++++++------- .github/workflows/ios-ci.yml | 6 +++--- .github/workflows/ios-device-test.yml | 16 ++++++++++++---- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/android-device-test.yml b/.github/workflows/android-device-test.yml index f22e96626..cbb578608 100644 --- a/.github/workflows/android-device-test.yml +++ b/.github/workflows/android-device-test.yml @@ -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() diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index 2b22ac736..53ac9c57b 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -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 diff --git a/.github/workflows/ios-device-test.yml b/.github/workflows/ios-device-test.yml index f4dcdb93d..93890f13a 100644 --- a/.github/workflows/ios-device-test.yml +++ b/.github/workflows/ios-device-test.yml @@ -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 }}