Skip to content

Optimize paths-ignore settings in build and CodeQL workflows#343

Merged
shibayan merged 2 commits intomasterfrom
optimize-trigger
Mar 31, 2026
Merged

Optimize paths-ignore settings in build and CodeQL workflows#343
shibayan merged 2 commits intomasterfrom
optimize-trigger

Conversation

@shibayan
Copy link
Copy Markdown
Owner

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: Added paths-ignore filters to skip the build workflow when only documentation files (docs/**, *.md), the LICENSE, or specific workflow files (docs.yml, publish.yml) are changed. This applies to both push and pull request events.
  • .github/workflows/codeql.yml: Added similar paths-ignore filters to the CodeQL workflow to avoid running security scans on non-code changes, for both push and pull request events.

@shibayan shibayan requested a review from Copilot March 31, 2026 16:38
@shibayan shibayan self-assigned this Mar 31, 2026
@shibayan shibayan added the enhancement New feature or request label Mar 31, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ignore filters to the Build workflow for push and pull_request events.
  • Add matching paths-ignore filters to the CodeQL workflow for push and pull_request events.

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>
@shibayan shibayan merged commit 940e596 into master Mar 31, 2026
5 checks passed
@shibayan shibayan deleted the optimize-trigger branch March 31, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants