Reputation: 9318
The Actions tab shows workflows created in main branche's /.github/workflows/ only
I have workflow.yml files with workflow_dispatch
trigger that are defined in another branch (test) that are not yet merged into the main branch
Is there any way I can see and run workflows with workflow_dispatch
trigger that are created in another branch not yet merged with the main branch?
Upvotes: 1
Views: 247
Reputation: 133
If you use a web browser, you will see a dropdown - Use workflow from
If you use GitHub CLI, you need to use --ref
flag
gh.exe workflow run workflown_name --ref branch_name -f param_name=value
documentation is here
Upvotes: 0
Reputation: 40653
It looks that you can't change at the moment. It takes actions from default branch. You can change default branch but I assume that this is not acceptable for you (which I understand). Please take a look here on github community - Workflow files only picked up from master?
Upvotes: 2