Skip to content

Old workflow used after commit change? #25437

Answered by BrightRan
pcolmer asked this question in Actions
Discussion options

You must be logged in to vote

@pcolmer,

Since I’m using pull_request_target, my understanding is that Actions will use the workflow from the master branch.

Yes, your understanding is correct.
However, there are more things you also need to know:

  1. When opening a PR, the base commit SHA (github.event.pull_request.base.sha) generally will point to the latest commit on the target branch of the PR, if the source branch is up-to-date with the target branch. The base commit SHA normally is fixed and not automatically changed.

  2. During the PR is Open, if you push some new commits to the target branch of the PR, the base commit SHA also will not be changed automatically. At this time, if you want the base commit SHA can poi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants