Skip to content

workflows must be defined on master? #25848

Answered by oldskool
mem asked this question in Actions
Discussion options

You must be logged in to vote

No, a workflow can exist in any branch. It will be triggered as long as your conditions (the “on” block) matches.

If you open a PR with a modified workflow, all workflows that are on the “pull_request” or “push” (without target branch) condition will run based on the code from that PR/push, so with the updated workflow.

Replies: 3 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
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
Labels
None yet
3 participants