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.
asked Mar 10, 2021 at 15:42
James Wang
8251 gold badge7 silver badges15 bronze badges
-
1Does this answer your question? Which branch should workflow files be located on for GitHub Actions to execute them?riQQ– riQQ2021年03月10日 19:12:02 +00:00Commented Mar 10, 2021 at 19:12
1 Answer 1
Your workflow won't be triggered unless the workflow file is also present on that branch. See also https://stackoverflow.com/a/66110799/6310633 .
answered Mar 10, 2021 at 15:48
jidicula
4,0671 gold badge26 silver badges41 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-yaml