Skip to content

ci: skip CI on docs-only changes (paths-ignore) - #237

Merged
andrewssobral merged 1 commit into
masterfrom
ci/skip-ci-on-docs
May 27, 2026
Merged

andrewssobral merged 1 commit into
masterfrom
ci/skip-ci-on-docs

Conversation

@andrewssobral

Copy link
Copy Markdown
Owner

What

Add paths-ignore to the pull_request trigger 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.yml
  • pixi_golden_matrix.yml

Ignored paths:

paths-ignore:
  - '**/*.md'
  - 'docs/**'
  - 'help/**'
  - 'LICENSE'

Why it's safe

  • master has 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 usual paths-ignore + required-check trap doesn't apply here).
  • paths-ignore only skips a run when every changed file matches, so mixed PRs (code + docs) still run CI in full.
  • workflow_dispatch on the matrix is unaffected — manual runs always work.

Motivated by #236 (a README-only PR) triggering the whole matrix unnecessarily.

🤖 Generated with Claude Code

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.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@andrewssobral andrewssobral self-assigned this May 27, 2026
@andrewssobral
andrewssobral merged commit 4d5351d into master May 27, 2026
7 checks passed
@andrewssobral
andrewssobral deleted the ci/skip-ci-on-docs branch May 27, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant