Optimize paths-ignore settings in build and CodeQL workflows#343
Merged
Optimize paths-ignore settings in build and CodeQL workflows#343
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes when the repository’s GitHub Actions workflows run by adding paths-ignore filters to avoid triggering CI and CodeQL analysis on documentation-only and certain workflow-only changes.
Changes:
- Add
paths-ignorefilters to the Build workflow forpushandpull_requestevents. - Add matching
paths-ignorefilters to the CodeQL workflow forpushandpull_requestevents.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/build.yml |
Skips Build runs for docs/markdown/license and selected workflow-file changes. |
.github/workflows/codeql.yml |
Skips CodeQL runs for docs/markdown/license and selected workflow-file changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
This pull request updates the GitHub Actions workflow configuration to optimize when CI and CodeQL checks are triggered. The main improvement is to prevent unnecessary workflow runs when documentation or workflow files are changed, which helps speed up CI and reduce resource usage.
Workflow optimization:
.github/workflows/build.yml: Addedpaths-ignorefilters to skip the build workflow when only documentation files (docs/**,*.md), theLICENSE, or specific workflow files (docs.yml,publish.yml) are changed. This applies to both push and pull request events..github/workflows/codeql.yml: Added similarpaths-ignorefilters to the CodeQL workflow to avoid running security scans on non-code changes, for both push and pull request events.