Can workflow_dispatch input be option list?

I would like to have dropdown list of input values:

on:
  workflow_dispatch:
    inputs:
      project:
        description: 'Environment'
        required: true
        options: ['production', 'staging', 'development']
        default: 'development'

Like selecting a branch:

13 Likes

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.
https://support.github.com/contact/feedback?contact[category]=actions

Thanks

2 Likes

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

1 Like

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?

2 Likes