ci: skip typecheck for workflow-only PRs (#3619)

The `code` paths filter currently matches `**` minus a tiny exclusion
list, so a PR that only touches `.github/workflows/*.yml` still flips
`code == true` and runs typecheck (~2 min on the runner).

Exclude `.github/**` from `code`, then re-include just `pr_checks.yml`
and `typecheck.yml` so a change to either of those still triggers the
full code check matrix.

Effect:
- workflow-only PRs (this one, future dependabot/codeql/etc.) skip
typecheck; `all-checks` treats the skipped job as non-failure so the
required status passes.
- modifying `pr_checks.yml` or `typecheck.yml` themselves still triggers
typecheck.
- the existing per-suite filters (`webapp`, `packages`, `internal`,
`cli`, `sdk`) already re-include the specific workflows that gate them,
so they're unaffected.
This commit is contained in:
nicktrn
2026-05-14 14:37:55 +01:00
committed by GitHub
parent 979655c281
commit 9caf4ceaf1
+3 -1
View File
@@ -33,7 +33,9 @@ jobs:
- '!docs/**'
- '!.changeset/**'
- '!hosting/**'
- '!.github/workflows/helm-prerelease.yml'
- '!.github/**'
- '.github/workflows/pr_checks.yml'
- '.github/workflows/typecheck.yml'
webapp:
- 'apps/webapp/**'
- 'packages/**'