diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index edd54c2..b7bacf8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,9 +32,11 @@ jobs: build-command: "npx @11ty/eleventy" check-dir: "_site" + # ci-static cancels other in-progress runs of this workflow on the same ref. + # Run after the legacy ci job so both calls can finish. static: - needs: autofix - if: always() && !cancelled() && (needs.autofix.result == 'skipped' || needs.autofix.outputs.committed != 'true') + needs: [autofix, ci] + if: always() && !cancelled() && needs.ci.result == 'success' && (needs.autofix.result == 'skipped' || needs.autofix.outputs.committed != 'true') uses: Sea-Haven-Industries/.github/.github/workflows/ci-static.yaml@74d3bfbdeb670654920b811c9b36f44e5f76d122 # v1.0.19 with: build-command: "npx @11ty/eleventy"