简体   繁体   中英

Github Actions only triggers on default branch

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.

Your workflow won't be triggered unless the workflow file is also present on that branch. See also https://stackoverflow.com/a/66110799/6310633 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM