Skip to content

Which definition of a workflow triggers a workflow? #26942

Answered by Crow-EH
markrtuttle asked this question in Actions
Discussion options

You must be logged in to vote

TL;DR: If you specified master in your trigger, you won’t be in this situation even when rebasing+pushing all your branches.

If you defined you workflow trigger like this, only the workflow defined on master will be triggered, after any push on master ( and master only ). e.g.: when merging a branch into master.

on:push:branches:-master

If you defined you workflow trigger like this, the workflow defined on the branch that was just pushed to will be triggered:

on: push

The only way to trigger every workflows of every branches, in this last example, would be to push on all branches at the same time, e.g.: after rebasing all branches on master and pushing them all. It will not be the case …

Replies: 1 comment

Comment options

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