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 }}