Skip to content

Run workflow after pushing changes to a PR #25796

Discussion options

You must be logged in to vote

Hi Peter,

If you make some changes to the files(eg: resolve conflicts), push to github, please use type ‘synchronize ’ for pull request to trigger the workflow, it works on my side, code as below:

name: Pull request check

on:

  pull_request:

types: [synchronize]

For type ‘edited’, I tried to use rest api locally to update Pull request(please refer to https://developer.github.com/v3/pulls/#update-a-pull-request), it’s successful to trigger the workflow.

Checked the pull request content from API result, you will find the file update/new commit is not included.

Replies: 4 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
Comment options

You must be logged in to vote
0 replies
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
Labels
None yet
3 participants