ci: keep Windows and Darwin checks satisfiable on docs-only changes #190
No reviewers
Labels
No labels
priority/P0
priority/P1
priority/P2
release/v0.1.0
status/blocked
status/planned
type/bug
type/design
type/test-gap
type/tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/felis!190
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/docs-only-noop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the docs-only merge block (405) reported for #181–#183.
Branch protection requires
windows /**anddarwin /**, but those workflows were skipped entirely viapaths-ignoreon docs-only diffs, so the required statuses never appeared.paths-ignorefromwindows.yml/darwin.ymlchangesjob (nix,fetch-depth: 0) that diffs the PR base / pushbeforeagainstHEAD(merge-base aware). Docs-only (docs/**,**/*.md) →relevant=false.relevant == 'true'; a*-noopjob runs onrelevant == 'false'and succeeds, so the workflow always reports at least one successful status matching/**.windows-packagekeeps itspush-only gate plusrelevant.Refs #181 #182 #183
Prefer the well-known dorny/paths-filter@v4 over the bespoke checkout+bash composite. Both workflows now run a single changes job via dorny with predicate-quantifier some-with-excludes: relevant: - '**' - '!docs/**' - '!**/*.md' - '!*.md' This mirrors the previous docs/**, **/*.md + *.md ignore set and keeps the /** branch protection satisfiable via the docs-only no-op jobs. Requires pull-requests: read for PR API mode (push falls back to git). Remove .forgejo/actions/detect-changes in favor of the external action. Assisted-by: Pi Coding Agent:Muse Spark 1.2