Skip to content

Trigger a workflow when the base reference of a pull request is updated #25798

Answered by BrightRan
elisa-dc asked this question in Actions
Discussion options

You must be logged in to vote

@elisa-dc,

Essentially, we can think of Rebase&Merge is pushing some new commits from a branch to another branch (other merge types are similar). This is a push event for the target branch.
If you setup a workflow run on push event in the target branch, after Rebase&Merge, normally this workflow will be triggered.

Another situation, if you want a workflow triggered to run on the pull_request event after Rebase&Merge, you can try using pull_request.closed event. You need to add this event to the workflow in the source branch before Rebase&Merge.

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review, unlabeled, closed]
    branches:
      - master

When a PR is mer…

Replies: 6 comments

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
Comment options

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