I have a workflow that is supposed to run whenever
- I create a new branch OR
- I push some commits to a branch that is not the “master”-branch.
What I’ve come up so far is this:
on: push: branches-ignore: - master tags-ignore: - '**' create: type: - branch
It works for both cases I’ve listed above, BUT…
Whenever I create a new branch (without any other change to it), the workflow is triggered twice (at the same time):
- one for event “create”
- one for event “push”
How can I make it run only once when I create a new branch?
Thanks in advance for any help!