Can workflow_dispatch input be option list?

I would like to have dropdown list of input values:

        description: 'Environment'
        required: true
        options: ['production', 'staging', 'development']
        default: 'development'

Like selecting a branch:


Hi @kestutisg,

Glad to see you in Github Community Forum! :grinning:

Currently option input list is not supported for workflow_dispatch event, there is no such option in rest api parameters.

It’s recommended to raise a feature request ticket in below link where github product manager will take a review.[category]=actions



UP, i need this feature too to control my multiple serverless functions in one repository


It wouldn’t need to be in the API parameter list, right? The API parameter could still be a string - but the UI would just restrict what possible strings could be passed into that parameter when the call is made?


Is this option present at least now?

@weide-zhou do you have any updates about this feature?
It’s a really important feature for me and I think for many other people…

1 Like

this would be great to have :+1: and useful for my company as well for our release process

1 Like

Would also appreciate this!

1 Like

Came here with the same quest - very useful to simplify deployments and avoid CLI

1 Like

I’m running into limitations without this option too. I’ve been creating shell scripts to validate input and then exit 1; however, it’s very annoying to have to type out the values of the options every time

and allowed_values list property is really needed. Crazy this hasn’t been implemented yet. Requires manual input validation in jobs…

This is a MUST have feature. I also can’t believe it hasn’t been implemented yet.

I also want this. My immediate use-case is that I want to deploy a particular build to one of my many environments, such as dev, staging, and prod. I want the deploy-a-build workflow to have a dropdown where I select one of those. Currently, I have to type “staging” into a free-text field, which seems kinda jank.

Also, since I’m associating those builds with semver tags, what I’d really like to do is have a dropdown populated by all the semver tags in my repo, so that instead of typing 0.5.50 into the “what tag do you want to deploy?” box, I just select one of the tags from a dropdown. It would be fine if I just had to select from all tags; like if you could make a dropdown for all of git objects of a certain type, like all the branches or all the tags or whatever, since saying “make an input for all tags with property P” could get kinda complicated, but just “all tags” would probably be simpler and good enough.