fix(ci): add run number and attempt to job name

Ensures that 'wait-for-check' will wait for builds of the same run
regardless of if there have been successful builds for other runs of the
same comit (e.g. when changes are menged in to main causing the branch
to be fast-forward and hence running CI for the same commit).
This commit is contained in:
Leroy Hopson 2024-03-30 16:14:42 +13:00
parent 5c6bcc45e3
commit 7778d68578
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
build-linux: build-linux:
name: Build (linux, ${{ matrix.arch }}, ${{ matrix.target }}) name: "Build (linux, ${{ matrix.arch }}, ${{ matrix.target }}) #${{ github.run_number }}/${{ github.run_attempt }}"
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -47,7 +47,7 @@ jobs:
path: addons/godot_xterm/native/bin/*.so path: addons/godot_xterm/native/bin/*.so
build-other-platforms: build-other-platforms:
name: Build (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}}) name: "Build (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}}) #${{ github.run_number }}/${{ github.run_attempt }}"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -189,7 +189,7 @@ jobs:
uses: fountainhead/action-wait-for-check@v1.2.0 uses: fountainhead/action-wait-for-check@v1.2.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build (web, wasm32, release) checkName: "Build (web, wasm32, release) #${{ github.run_number }}/${{ github.run_attempt }}"
ref: ${{ github.event.pull_request.head.sha || github.sha }} ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install binary build artifacts - name: Install binary build artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@ -285,7 +285,7 @@ jobs:
uses: fountainhead/action-wait-for-check@v1.2.0 uses: fountainhead/action-wait-for-check@v1.2.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build (${{ matrix.platform }}, ${{ matrix.arch }}, debug) checkName: "Build (${{ matrix.platform }}, ${{ matrix.arch }}, debug) #${{ github.run_number }}/${{ github.run_attempt }}"
ref: ${{ github.event.pull_request.head.sha || github.sha }} ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install binary build artifacts - name: Install binary build artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4