Workflow is running twice when creating a new branch #25996
-
I have a workflow that is supposed to run whenever
What I’ve come up so far is this:
It works for both cases I’ve listed above, BUT…
Question: Thanks in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Creating a new branch usually involves creating it locally and then pushing it, that’s why the The |
Beta Was this translation helpful? Give feedback.
-
@airtower-luna Thank you! Works like a charm :slight_smile: |
Beta Was this translation helpful? Give feedback.
Creating a new branch usually involves creating it locally and then pushing it, that’s why the
push
event triggers in addition tocreate
. So the solution is: Drop thecreate
event from the workflow triggers. 🙂The
create
event is useful if you want a workflow that runs only for new branches.