Skip to content

Truly independent web browser

CI: Don’t report a benchmark run that a newer run canceled

sideshowbarkera681bfbc6f38
diff --git a/.github/workflows/bench-pr.yml b/.github/workflows/bench-pr.yml
index 7278dba01d4..5069f56ca49 100644
--- a/.github/workflows/bench-pr.yml
+++ b/.github/workflows/bench-pr.yml
@@ -309,7 +309,8 @@ jobs:
report:
needs: [prepare, bench]
- if: ${{ always() && needs.prepare.result != 'skipped' }}
+ # A run that a newer run for the same PR cancelled leaves its report to that newer run.
+ if: ${{ !cancelled() && needs.prepare.result != 'skipped' }}
runs-on: blacksmith-2vcpu-ubuntu-2404
# Runs nothing from the PR.