Skip to content

Workflow is running twice when creating a new branch #25996

Answered by airtower-luna
ingomohr asked this question in Actions
Discussion options

You must be logged in to vote

Creating a new branch usually involves creating it locally and then pushing it, that’s why the push event triggers in addition to create. So the solution is: Drop the create event from the workflow triggers. 🙂

The create event is useful if you want a workflow that runs only for new branches.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants