-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use path filter for GH actions #1244
Comments
We do have a few |
@philipphofmann I have two questions where you hopefully have more experience than me: First All of our PRs are set on Should we still use them? And if so, do we need to change the trigger from Second Also, we do use multiple
The behaviour per GitHub documentation:
So that is the reason why your change to Conclusion Would you agree that, assuming we can use paths regardless of the first point, we should move to the includes rather than using the ignores? |
Only if you have required checks. On Cocoa, we don't because we want to be able to merge changelog changes quickly, for example.
I think so, yes. Without looking into all GH actions properly, I can't tell you which configuration you should use exactly. The goal should be that you only run the jobs that make sense. For example, for a Changelog entry change, GH actions shouldn't run all workflows for a PR. Our changelog changes only run four checks; see getsentry/sentry-cocoa#3334. We achieve this by using path filters for PRs. Please choose whatever makes for this repo. @denrase, does that help you, or do you need further info? |
@philipphofmann Thank you for your insights, finally came around to take a look at this. 🙇 |
Description
When opening #1239, which only touches the PR request template, I noticed that GH actions run almost all checks, which is unnecessary.
We can use path filters for some of the workflows like flutter.yml or e2e_dart.yml to avoid unneeded GH action runs.
You can have a look at Cocoa 1, Cocoa 2 for reference
The text was updated successfully, but these errors were encountered: