-
DescriptionWhen you have Github Workflows which only run on specific file changes ( Example1. CommitOverviewCommits2. CommitOverviewCommitsConclusion and suggestionThus, you could easily think all checks were successful and merge a PR but it only reflects the checks from the latest commit in this PR. I would suggest always showing the latest results from all workflows that were run in a PR in the overview and |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You probably need to change the problematic workflow to run on Also there is a subtle but very important difference between |
Beta Was this translation helpful? Give feedback.
You probably need to change the problematic workflow to run on
pull_request
— then it would be rerun on any changes to the PR, even when the last commit does not change the specified paths, but some previous ones do.Also there is a subtle but very important difference between
push
andpull_request
— workflows running onpush
test exactly the code that was pushed, but workflows running onpull_request
test the result of attempted merge between the PR target and head branches. So thepush
workflows will never detect that the code in the PR head branch is not actually compatible with some other changes made in the PR target branch — only thepull_request
workflows can detect that.