From 1295475ecfc5f7d15fc675606ce48ecced6840bc Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 21 Jul 2026 17:31:59 +0200 Subject: [PATCH] Updated deprecated GitHub Actions in tag-triggered workflows Upgraded or replaced the GitHub Actions in browser-tests.yaml and api_refs.yaml that still run on the deprecated Node.js 20 runtime (to be removed from GitHub runners on September 16th, 2026): - Bumped actions/create-github-app-token from v2 to v3, switching the deprecated app-id input to client-id - Replaced octokit/request-action workflow-dispatch calls with gh api --method POST, which also drops the !!str ref workaround - Bumped the runner to ubuntu-26.04 Co-Authored-By: Claude Fable 5 --- .github/workflows/api_refs.yaml | 20 +++++++++----------- .github/workflows/browser-tests.yaml | 21 ++++++++++----------- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/api_refs.yaml b/.github/workflows/api_refs.yaml index eb4e88a..d5fe2e0 100644 --- a/.github/workflows/api_refs.yaml +++ b/.github/workflows/api_refs.yaml @@ -8,23 +8,21 @@ on: jobs: trigger-api-refs-build: name: 'Build API References' - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Generate token id: generate_token - uses: actions/create-github-app-token@v2 + uses: actions/create-github-app-token@v3 with: - app-id: ${{ secrets.AUTOMATION_CLIENT_ID }} + client-id: ${{ secrets.AUTOMATION_CLIENT_ID }} private-key: ${{ secrets.AUTOMATION_CLIENT_SECRET }} owner: ${{ github.repository_owner }} - - uses: octokit/request-action@v2.x - name: "Trigger API references' build" - with: - repository: ibexa/documentation-developer - workflow: 'api_refs.yaml' - ref: '!!str 5.0' - route: POST /repos/{repository}/actions/workflows/{workflow}/dispatches - inputs: '{ "version": "${{ github.ref_name }}" }' + - name: "Trigger API references' build" + shell: bash + run: | + gh api --method POST "/repos/ibexa/documentation-developer/actions/workflows/api_refs.yaml/dispatches" \ + -f ref="5.0" \ + -f "inputs[version]=${{ github.ref_name }}" env: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index cd3c8a5..7e03d0e 100644 --- a/.github/workflows/browser-tests.yaml +++ b/.github/workflows/browser-tests.yaml @@ -8,22 +8,21 @@ on: jobs: trigger-browser-tests: name: Browser tests - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - - uses: actions/create-github-app-token@v2 + - uses: actions/create-github-app-token@v3 name: Generate token id: generate_token with: - app-id: ${{ secrets.AUTOMATION_CLIENT_ID }} + client-id: ${{ secrets.AUTOMATION_CLIENT_ID }} private-key: ${{ secrets.AUTOMATION_CLIENT_SECRET }} owner: ${{ github.repository_owner }} - - uses: octokit/request-action@v2.x - name: Trigger browser tests - with: - repository: ibexa/commerce - workflow: "browser-tests.yml" - ref: ${{ github.ref_name }} - route: POST /repos/{repository}/actions/workflows/{workflow}/dispatches - inputs: '{ "send-success-notification": "true", "project-version": "${{ github.ref_name }}" }' + - name: Trigger browser tests + shell: bash + run: | + gh api --method POST "/repos/ibexa/commerce/actions/workflows/browser-tests.yml/dispatches" \ + -f ref="${{ github.ref_name }}" \ + -f "inputs[send-success-notification]=true" \ + -f "inputs[project-version]=${{ github.ref_name }}" env: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}