Run workflow manually with variables #26961
-
I would love to be able to run my workflow manually from github with the ability to set env vars as I do so. This would be great for deploying as I could do it manually from github and add in variables like the version number. Is this feature currently avaialbe or is there any plan to add it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @malimccalla , It’s recommended to track this feature on existed ticket: https://github.community/t5/GitHub-Actions/GitHub-Actions-Manual-Trigger-Approvals/td-p/31504. You can raise a ticket here to confirm if there’s any progress about the feature, it will raise the feature priority, and github product manager will help to answer. Meanwhile, as a workaround, you can send Repository Dispatch Event to your repository to trigger the workflow manually, you can add the version number in the event payload, and get it from ${{ github.event.client_payload.vernumber }} in the workflow. My workflow: https://github.com/weide-zhou/ticket17/actions/runs/69528670/workflow Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @malimccalla ,
It’s recommended to track this feature on existed ticket: https://github.community/t5/GitHub-Actions/GitHub-Actions-Manual-Trigger-Approvals/td-p/31504.
You can raise a ticket here to confirm if there’s any progress about the feature, it will raise the feature priority, and github product manager will help to answer.
Meanwhile, as a workaround, you can send Repository Dispatch Event to your repository to trigger the workflow manually, you can add the version number in the event payload, and get it from ${{ github.event.client_payload.vernumber }} in the workflow.
My workflow:
https://github.com/weide-zhou/ticket17/actions/runs/69528670/workflow
Thanks.