From 7778d685785472c191fe5058ca87f0b7f015c608 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 30 Mar 2024 16:14:42 +1300 Subject: [PATCH] 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). --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 621e8be..ed9c61e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: jobs: 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 strategy: fail-fast: false @@ -47,7 +47,7 @@ jobs: path: addons/godot_xterm/native/bin/*.so 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 }} strategy: fail-fast: false @@ -189,7 +189,7 @@ jobs: uses: fountainhead/action-wait-for-check@v1.2.0 with: 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 }} - name: Install binary build artifacts uses: actions/download-artifact@v4 @@ -285,7 +285,7 @@ jobs: uses: fountainhead/action-wait-for-check@v1.2.0 with: 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 }} - name: Install binary build artifacts uses: actions/download-artifact@v4