Skip to content

Change trigger branch without a code change #26645

Answered by jsoref
abelhbeyene asked this question in Actions
Discussion options

You must be logged in to vote

I’d probably delete the branches constraint and then have a step that runs if it’s a push and checks to see if the branch is master or a specific file exists and sets an output. And then have the rest of the workflow run only if that output is set.

Then you can have the input workflow create that file on that branch and push.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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