I defined a ruleset requiring for a conditional check to pass for a PR to be merged, but it checks all PRs and blocks irrelevant PRs to the check #139540
Answered
by
hankhsu1996
byungjoon72
asked this question in
Actions
-
Beta Was this translation helpful? Give feedback.
Answered by
hankhsu1996
Nov 18, 2024
Replies: 1 comment 1 reply
-
This issue has been present in GitHub Actions for over two years. The official solution has changed several times, and the current recommendation is to avoid adding any past filter to the workflow. This means the job must be triggered unconditionally. Also, see this discussion. A workaround to save compute resources is to use path filters in jobs or steps. If you detect that the change is unrelated to this CI, you can force the job to pass. Tools like path-filter or changed-files can help implement this approach. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
byungjoon72
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue has been present in GitHub Actions for over two years. The official solution has changed several times, and the current recommendation is to avoid adding any past filter to the workflow. This means the job must be triggered unconditionally. Also, see this discussion.
A workaround to save compute resources is to use path filters in jobs or steps. If you detect that the change is unrelated to this CI, you can force the job to pass. Tools like path-filter or changed-files can help implement this approach.