Skip to content

"All checks have passed" only taking latest commit into account #27267

Answered by sigprof
sj14 asked this question in Actions
Discussion options

You must be logged in to vote

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 and pull_request — workflows running on push test exactly the code that was pushed, but workflows running on pull_request test the result of attempted merge between the PR target and head branches. So the push 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 the pull_request workflows can detect that.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sj14
Comment options

@sj14
Comment options

@shaneDubbs
Comment options

@farrukh-taqveem-carv
Comment options

@sj14
Comment options

Answer selected by sj14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants