I have a GitHub action that does something whenever a new issue is created.
Now the workflow yaml file is in dev branch.
And after pushing the yaml, file the action started.
I want actions to run from workflow files only in main branch.
Is there any settings option, to disable workfile file run from a specific branch?
Basically what I want is, workflow files which are in allowed branches, should run.
I am not talking about on : triggers.
I am talking about a general repo setting, that would enforce github to ignore any workflow files in branches other than allowed branches