All workflow_dispatch to only run from a specific branch set at the repo level #19779
Unanswered
scott-doyland-burrows
asked this question in
Actions
Replies: 3 comments 1 reply
-
Hi @scott-doyland-burrows, did you find a solution to this? I am facing a similar issue. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Minor, but should the title of this discussion be updated to say "Allow" instead of "All"? Might make it more likely to be spotted. |
Beta Was this translation helpful? Give feedback.
0 replies
-
تراخيص الاستخدام وضبط المعرفات الاساسيه |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to set
workflow_dispatch
within a workflow - but at the repo level only allow themain
branch to trigger the workflow manually. Here is my use-case:schedule
and on aworkflow_dispatch
.workflow_dispatch
, as this would then also request approvals for theschedule
.non-main
branch and run theworkflow_dispatch
from that branch, as they could then update the workflow to do something undesirable.workflow_dispatch
could only run from themain
branch then I could ensure the workflow was always correct.workflow_dispatch
, and this should not be able to be overridden by setting anything in the workflow itself.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions