\n
I tried adding the name of the branch where on which I need to enable this workflow but when I click on start commit then it still shows me that it will be saved inside the main branch. Any idea how can I enable workflow in a non-main branch?
\n","author":{"@type":"Person","name":"Faisal Shani"},"upvoteCount":0,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"You are editing the main.yml file from the main branch, but once you select start commit
\n\nat the bottom of the page, you are asked if you want to create a new branch and submit a pull request.
\n\n","author":{"@type":"Person","name":"Preston Martin"},"upvoteCount":1}}}Reputation: 820
I am just trying to create a github workflow for cicd on a non-main branch. But everytime I click on "Create New Workflow" it be defaults shows me the "main" without any option to save it.
I tried adding the name of the branch where on which I need to enable this workflow but when I click on start commit then it still shows me that it will be saved inside the main branch. Any idea how can I enable workflow in a non-main branch?
Upvotes: 0
Views: 507
Reputation: 2963
You are editing the main.yml file from the main branch, but once you select start commit
at the bottom of the page, you are asked if you want to create a new branch and submit a pull request.
Upvotes: 1