Reputation: 805
I am trying to run a specific workflow when the PR is merged to dev
branch or changes are committed to dev
branch directly. Of course, dev
branch is not a default one.
To realize that, I set filters like this.
on:
push:
branches:
- dev
But this workflow is not triggered. Seems Github Actions only triggers on default branch. I am not sure if this is a bug.
Upvotes: 0
Views: 3054
Reputation: 3989
Your workflow won't be triggered unless the workflow file is also present on that branch. See also https://stackoverflow.com/a/66110799/6310633 .
Upvotes: 1