From bc45497754b58e92e58d7ccd28a763828df1203b 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 browser-tests workflow Upgraded or replaced the GitHub Actions in browser-tests.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/browser-tests.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index ed57171..fb07110 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/experience - 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/experience/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 }}