Github Actions CI: Not running on push for feature branches

Viewed 567

I am following this tutorial to run my unit tests on Github. I have it on both master and feature branch, but it's not firing when I push to the feature branch.

 on:
   push:
     branches:
       - '*'
       - '!master'
       - '!release*'

However if I follow the cron-based example from the docs:

 on:
   schedule:
     - cron:  '0 * * * *'

It will run but I want this to be for pull requests.

1 Answers

I found the answer here:

on:
  push:
    # Sequence of patterns matched against refs/heads
    branches-ignore:
      - master
      - release*
Related