fix(ci): run the static check after the legacy ci job

Both jobs call ci-static, which cancels the other in-progress run on the same ref, so ci-complete never saw both succeed.
This commit is contained in:
Adam Moussa 2026-09-24 19:12:45 -04:00
parent 1cd8d8756a
commit bbc95f320f
No known key found for this signature in database

View file

@ -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"