Skip to content

Actions on Pull Request against another Pull Request? #25142

Answered by BrightRan
mrcasals asked this question in Actions
Discussion options

You must be logged in to vote

@mrcasals ,

I noticed that you are using the below configuration in your workflow:

on:
  pull_request:
    branches:
      - "*"

The branches filter pattern ‘*’ only matches the branch names that don’t contain a slash (/). This is the root cause of the problem you are facing.

If you want to match all branch names, include the names that contain slashes (/), you can use one of the below two configurations:

on:
  pull_request:
    branches:
      - "**"

because  ‘**’ is default branches filter pattern when you don’t set any branches filter, so you also can directly use,

on:
  pull_request:

More details, you can reference here: https://help.github.com/en/actions/reference/workflow-syntax-…

Replies: 2 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants