Update workflow triggers to include specific paths for push events#318
Merged
Update workflow triggers to include specific paths for push events#318
Conversation
There was a problem hiding this comment.
Pull request overview
This PR optimizes CI execution by adding paths filters to GitHub Actions workflow triggers so builds and docs deployments only run when relevant files change.
Changes:
- Add
pathsfilters to the build workflow for bothpushandpull_requestevents (and expandpull_requestevent types). - Add
pathsfilters to the docs deployment workflow forpushevents tomaster.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/build.yml | Restricts build/test/lint runs to changes in .editorconfig, src/**, or the workflow file; expands PR trigger types. |
| .github/workflows/docs.yml | Restricts docs deployment runs to changes in docs/** or the workflow file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 triggers to optimize when builds and documentation deployments run. The changes ensure that workflows only execute when relevant files are modified, reducing unnecessary runs and improving CI efficiency.
Workflow trigger improvements:
.github/workflows/build.yml: Addedpathsfilters for bothpushandpull_requestevents so the build workflow only runs when.editorconfig, files insrc/**, or the workflow file itself are changed. Also expandedpull_requesttypes to includeopened,reopened,synchronize, andready_for_review..github/workflows/docs.yml: Addedpathsfilters for thepushevent so the docs deployment workflow only runs when files indocs/**or the workflow file itself are changed.