Skip to content

Trigger on push events to pull requests? #26366

Discussion options

You must be logged in to vote

Hi @jeff-hernandez, welcome to the GitHub Support Community! Workflows can only be triggered by the events listed on this page:

https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows

pull_request isn’t a valid type of push event so this syntax won’t work. What you’re likely looking for is the synchronize type of the pull_request event. This will trigger your workflow each time the HEAD branch is updated in a pull request—i.e. when it’s pushed to.

https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request

on:
  pull_request:
    types: [synchronize]

Replies: 1 comment

Comment options

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