Skip to content

GitHub Action on Pull Request only for certain branches #26795

Discussion options

You must be logged in to vote

The branch filter for pull_request events works based on the name of the target (“base”) branch, not the branch holding the changes you want to merge in. So those filters you’ve tried will skip the workflow if the PR is trying to merge into an RC or hotfix branch. See documentation on on.<push|pull_request>.<branches|tags>:

For a pull_request event, only branches and tags on the base are evaluated.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JJ
Comment options

@villelahdenvuo
Comment options

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