From 7a522a34109390937d7a2579329f82be6025c453 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sun, 29 Jun 2025 10:19:22 +1200 Subject: [PATCH] fix(ci): only run benchmarks if build passed Otherwise the benchmark steps will run indefinitely. --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a028931..05a7f6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -356,6 +356,7 @@ jobs: run: godot --editor --headless --quit-after 100 || true - name: Wait for build uses: fountainhead/action-wait-for-check@v1.2.0 + id: wait-for-build with: token: ${{ secrets.GITHUB_TOKEN }} checkName: "Build (linux, x86_64, release) #${{ github.run_number }}" @@ -366,6 +367,7 @@ jobs: path: addons/godot_xterm/native/bin merge-multiple: true - name: Benchmark + if: steps.wait-for-build.outputs.conclusion == 'success' shell: bash run: just bench ${{matrix.benchmark}} - name: Upload results