ci: skip CI on docs-only changes (paths-ignore) - #237
Merged
Merged
Conversation
Add `paths-ignore` (**/*.md, docs/**, help/**, LICENSE) to the pull_request trigger of the 3 autobuild jobs and the Pixi golden matrix, so documentation-only PRs (e.g. README edits) don't spin up the full build/test matrix. master has no branch protection / required checks, so skipping these on docs-only PRs does not block merges. Mixed PRs (code + docs) still run CI, since paths-ignore only skips when every changed file matches.
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
paths-ignoreto thepull_requesttrigger of the CI workflows so documentation-only PRs don't run the full build/test matrix.Applied to all four PR-triggered workflows:
cmake_autobuild_ubuntu_ocv347.yml,cmake_autobuild_ubuntu_ocv3416.yml,cmake_autobuild_ubuntu_ocv460.ymlpixi_golden_matrix.ymlIgnored paths:
Why it's safe
masterhas no branch protection / required status checks, so a docs-only PR that skips these workflows is not blocked waiting for a check to report (the usualpaths-ignore+ required-check trap doesn't apply here).paths-ignoreonly skips a run when every changed file matches, so mixed PRs (code + docs) still run CI in full.workflow_dispatchon the matrix is unaffected — manual runs always work.Motivated by #236 (a README-only PR) triggering the whole matrix unnecessarily.
🤖 Generated with Claude Code