-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
CI: Avoid path filtering in "required" workflows #28277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @OnkarRuikar - good cleanup, leaving a +1 👍🏻
there is no point in making this workflow "required" in settings.
Why not? It seems like one of the more useful jobs to have PRs block if the author made a tooling mistake that we don't want to land on main:
https://github.com/mdn/content/actions/runs/5387620912/job/14582323137
8689843
to
f5abc65
Compare
True! We do need these as required. Another (following) issue was lingering in my mind that is why the statement. I was also thinking of the issue of these "required" workflows not running on other files and disabling the merge button. In other words we don't want to run redirects-check command for all the PRs but we do want to run the workflow as it is "required". GitHub docs suggests not to use path filter for "required" workflows.
So updating these workflows using dorny/paths-filter action as requested by @Josh-Cena. |
Hi Onkar, in translated-content, we have occured the following case: There is a redirection from |
c254a0f
to
e859f93
Compare
Co-authored-by: Brian Thomas Smith <[email protected]>
This is a very rare case but it is possible so putting the old "files/**" back. So the the PRs scope has now reduced to only avoiding path filtering for "required" workflows. I've changed the PR title and updated the code to do just that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @OnkarRuikar - I think we're good to go
The workflow checks onlyfiles/en-us/_redirects.txt
file. It doesn't work on any other file.It is not required to run this workflow in every PR. This PR reduces the workflows scope to only the_redirects.txt
file and the workflow file.Also, there is no point in making this workflow "required" in settings.Edit: Had to revert the original changes due to the edge case. Now the PR focuses only on avoiding path filtering.
/cc @bsmth