Skip to content

Define different workflow on different branches with workflow_dispatch #25412

Answered by BrightRan
caiofaustino asked this question in Actions
Discussion options

You must be logged in to vote

@caiofaustino,

About your first question,

I think this is the correct approach since I only want each workflow to run on that specific branch. Is this a fair assumption?

Sure, you can set up and run different workflows on different branches.
However, you also need to know that some events only trigger workflow runs if the workflow files are on the default branch, such as the events repository_dispatch, check_run, check_suite, etc. . These events are not available on other branches.


About your second question,

Also I want to trigger workflow bar manually so I only set on: workflow_dispatch: . But then after merging it I can’t see the action the the GitHub UI. Is there something else I …

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
3 participants