Trying to get a GitHub action to trigger when the name of the branch that the PR comes from has a specific pattern.
Normally you can do this;
name: My action name
on:
pull_request:
branches:
- 'something/**'
# ... the rest of the action
This will make the action trigger when a pull request tries to merge into a branch named something/any-string-here, however, I want the reverse. I want this action to run when the base branch has this name, regardless of what the target branch is.
Can this be done? Or do I have to add if-statements to all the steps checking the branch name?