James Wang
James Wang

Reputation: 805

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.

Upvotes: 0

Views: 3054

Answers (1)

jidicula
jidicula

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

Related Questions