👷 Prevent GH-actions from running when unrelated changes are made#1384
Closed
justin-p wants to merge 9 commits intofastapi:masterfrom
Closed
👷 Prevent GH-actions from running when unrelated changes are made#1384justin-p wants to merge 9 commits intofastapi:masterfrom
justin-p wants to merge 9 commits intofastapi:masterfrom
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
YuriiMotov
approved these changes
Oct 9, 2025
Member
YuriiMotov
left a comment
There was a problem hiding this comment.
LGTM!
All path lists are identical.
I checked that all files exist and that it makes sense to ignore them
Member
|
I think we can also ignore |
Contributor
|
This pull request has a merge conflict that needs to be resolved. |
Member
|
Thanks for the interest! But this would mean that the entire thing is skipped, and then it wouldn't pass if it's a required check before merging. This would need a combination of another action to filter paths changed (instead of the builtin logic) combined with alls-green at the end, I think I did something like that for some parts in FastAPI, don't remember exactly. For now I'll pass on this one, but thanks! ☕ |
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 change effectively prevents a playwright or a backend test from running when you for example update a README.md file.
Currently when updating certain files that do not effect the outcome of tests in anyway will trigger Actions to run regardless. To prevent unneeded credits being used or charges being made when this template is used on private repositories certain files have been added as a
paths-ignoreon relevant actions.