Consolidate path filters in SDK test workflows per GitHub Actions spec#303
Merged
Consolidate path filters in SDK test workflows per GitHub Actions spec#303
Conversation
…ths-ignore Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub actions to handle path filters correctly
Consolidate path filters in SDK test workflows per GitHub Actions spec
Jan 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates GitHub Actions SDK test workflows to comply with the GitHub Actions spec that disallows using paths and paths-ignore together for the same event.
Changes:
- Removed
paths-ignorefrom the SDK test workflows’pull_requesttriggers. - Added equivalent negated patterns (
!…) underpaths, with positive patterns listed first to preserve filter precedence. - Applied the same consolidation approach across Node.js, Python, Go, and .NET SDK workflows.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/nodejs-sdk-tests.yml | Replaces paths-ignore with negated paths patterns for pull_request trigger filtering. |
| .github/workflows/python-sdk-tests.yml | Replaces paths-ignore with negated paths patterns for pull_request trigger filtering. |
| .github/workflows/go-sdk-tests.yml | Replaces paths-ignore with negated paths patterns for pull_request trigger filtering. |
| .github/workflows/dotnet-sdk-tests.yml | Replaces paths-ignore with negated paths patterns for pull_request trigger filtering. |
💡 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.
GitHub Actions does not support using both
pathsandpaths-ignoreon the same event. All SDK test workflows were violating this constraint.Changes
Consolidated path filtering in 4 workflows:
nodejs-sdk-tests.ymldotnet-sdk-tests.ymlgo-sdk-tests.ymlpython-sdk-tests.ymlReplaced
paths-ignorewith negated patterns inpathsusing!prefix:Pattern order follows spec: positive patterns first, then negative patterns. Filtering behavior unchanged.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.