vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Empty value for choice option shows "Unexpected value" error

Open ThiefMaster opened this issue 1 year ago • 1 comments

on:
  # ...
  workflow_dispatch:
    inputs:
      plugin-name:
        description: Specific plugin to build
        type: choice
        options:
          - ''
          - foo
          - bar

This shows Unexpected value '' on the '``' line. But it's perfectly valid and unfortunately the only way to really make an optional choice field where one can decide to not select anything (and not get anything preselected). Likewise, it's the only way to make a required choice field where one is forced to actually make a choice and not just have the first option preselected.

ThiefMaster avatar Sep 24 '24 12:09 ThiefMaster

Same here. Image

ENEMBI avatar Mar 27 '25 13:03 ENEMBI