ci: skip CI when only release.yml changes#1261
Conversation
Add paths-ignore for .github/workflows/release.yml to all test and build workflows so that PRs modifying only the release workflow don't trigger slow integration tests and other unnecessary CI checks. Affected workflows: build, codeql, dependency-audit, lint, test-action, test-chroot, test-coverage, test-examples, test-integration-suite, test-integration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
This PR updates GitHub Actions workflow triggers to avoid running the main CI suite on pull requests that only modify the release workflow definition (.github/workflows/release.yml), reducing unnecessary CI load while leaving push to main and workflow_dispatch behavior intact.
Changes:
- Add
paths-ignore: ['.github/workflows/release.yml']topull_requesttriggers across multiple CI workflows. - Extend existing
paths-ignorelists (where present) to include the release workflow file.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/build.yml | Ignore PRs that only change .github/workflows/release.yml for the build verification workflow. |
| .github/workflows/codeql.yml | Ignore PRs that only change .github/workflows/release.yml for CodeQL on PRs. |
| .github/workflows/dependency-audit.yml | Add release workflow file to PR paths-ignore for dependency auditing. |
| .github/workflows/lint.yml | Add release workflow file to PR paths-ignore for linting. |
| .github/workflows/test-action.yml | Add release workflow file to PR paths-ignore for action tests. |
| .github/workflows/test-chroot.yml | Ignore PRs that only change .github/workflows/release.yml for chroot integration tests. |
| .github/workflows/test-coverage.yml | Add release workflow file to PR paths-ignore for coverage reporting. |
| .github/workflows/test-examples.yml | Add release workflow file to PR paths-ignore for examples testing. |
| .github/workflows/test-integration-suite.yml | Ignore PRs that only change .github/workflows/release.yml for the integration suite. |
| .github/workflows/test-integration.yml | Ignore PRs that only change .github/workflows/release.yml for integration tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| pull_request: | ||
| branches: [main] | ||
| paths-ignore: | ||
| - '.github/workflows/release.yml' | ||
| workflow_dispatch: |
There was a problem hiding this comment.
The PR title/description implies that PRs changing only .github/workflows/release.yml will skip CI broadly, but there are other workflows still triggered on pull_request without a matching paths-ignore (e.g. .github/workflows/build-test.lock.yml, smoke-*.lock.yml, container-scan.yml, pr-title.yml). As-is, a release-workflow-only PR will still run those checks; either extend the same paths-ignore to the remaining PR-triggered workflows you want to suppress, or adjust the PR title/description to reflect that only this subset is being skipped.
|
Smoke Test Results — PASS
|
|
PR titles:
|
|
Smoke test results for run 23015440360: ✅ GitHub MCP — Last 2 merged PRs: #1258 Overall: PASS | Author:
|
🏗️ Build Test Suite Results
Overall: 7/8 ecosystems passed — ❌ FAIL ❌ Failure DetailsJava (gson, caffeine) — Maven compile failed: network unreachable when downloading Maven plugins from Maven requires downloading plugin POMs on first use and cannot reach the Maven Central repository from this environment. The
|
Summary
paths-ignore: ['.github/workflows/release.yml']to 10 CI workflow triggers so that PRs modifying onlyrelease.ymldon't trigger slow integration tests and other unnecessary checksworkflow_dispatchandpushtomaintriggers are unchanged, so scheduled/manual runs still workTest plan
release.ymland confirm no test/build workflows are triggered🤖 Generated with Claude Code