I'm trying to create an action whose workflow runs when Pull Requests from specific branches are opened against master. What I currently have runs the workflow on all Pull requests opened against master from all branches.
name: Auto Approve Pull Request
on:
pull_request:
branches:
- 'master'
- 'skip-*'
jobs:
build:
name: Approve PR
runs-on: ubuntu-latest
steps:
- name: Fetch out code
uses: username/my-github-repo@master
with:
token: ******
env:
BRANCH_PREFIX: "skip-*"
PULL_REQUEST_BRANCH: "master"
I wanted to have the workflow to run on just branches named skip-*.