Is there possible to use Git Tags as a choice of workflow dispatch's input #45871
Replies: 7 comments 4 replies
-
Hi, I am working on a similar issue. What you are asking is kinda there today. When you run a workflow, the default parameter is show on right hand side as "Branch: Main", click on it, you will see all branches and a tab for Tags. Note I found that tags that were created before the github actions workflow were created are disabled. |
Beta Was this translation helpful? Give feedback.
-
Is this still open or please share the script if you find the solution. Basically, we need to list the branches/tags names as a drop-down/list to select to trigger the workflow. |
Beta Was this translation helpful? Give feedback.
-
I saw this article on setting up a dropdown in workflow, check if this helps |
Beta Was this translation helpful? Give feedback.
-
@saenyakorn |
Beta Was this translation helpful? Give feedback.
-
It would be great to have this feature! |
Beta Was this translation helpful? Give feedback.
-
It would be really a nice feature to have!!! |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
Use Case
Assume that I have GitHub Action
deployment
workflow usingworkflow_dispatch
for manually deploy my apps. On my project, I properly tag the commit with Semantic Version, such as1.0.2
(for single-app repo) orweb@1.0.2
(for monorepo). I would like to deploy specific app using GitHub Action usingtag
from Git HistoryExpectation
I would be great if we have
dropdown
for workflow dispatch's input like whattype: choice
can do.Workaround
Currently, I use
type: string
(default) to get user-preferred tag from GitHub. Like YAML file below. It works but inconvenient, since user may input a wrong tag name.Beta Was this translation helpful? Give feedback.
All reactions