question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support "multi-choice" input type for manual workflows

See original GitHub issue

Describe the enhancement Current set of input types doesn’t cover some use-cases for manual workflows

We use a single gh-action as an entrypoint of deploying packages from our monorepo, and sometimes we need to manually deploy several packages simultaneously. Up until now we just went with a set of Booleans, so we could tick all the packages we needed to run our CI/CD against via UI. However, we speedily reached a limit of 10 input values

Introducing an input type that would store a, say, json array could help:

on:
  workflow_dispatch:
    inputs:
      name:
        type: multi-choice
        description: select packages
        options: 
        - go-service1
        - go-service2
        - py-service1

…and in fact would be more logical with less copy-paste overhead for our use-case

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:285
  • Comments:108 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
nikola-jokiccommented, May 17, 2023

Hey everyone, this is not really a runner issue ☺️. We have communicated this issue to the correct team, but I will leave it open because it gained so much attention ☺️

7reactions
pritom007commented, May 3, 2023

Describe the enhancement Current set of input types doesn’t cover some use-cases for manual workflows

We use a single gh-action as an entrypoint of deploying packages from our monorepo, and sometimes we need to manually deploy several packages simultaneously. Up until now we just went with a set of Booleans, so we could tick all the packages we needed to run our CI/CD against via UI. However, we speedily reached a limit of 10 input values

Introducing an input type that would store a, say, json array could help:

on:
  workflow_dispatch:
    inputs:
      name:
        type: multi-choice
        description: select packages
        options: 
        - go-service1
        - go-service2
        - py-service1

…and in fact would be more logical with less copy-paste overhead for our use-case

Also it would be nice to have a option to take user inputs as one of the multi-choice.

on:
  workflow_dispatch:
    inputs:
      name:
        type: multi-choice
        description: select packages
        options: 
        - go-service1
        - go-service2
        - py-service1
        - input()
Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Actions: Input types for manual workflows
In addition to the default string type, we now support choice , boolean , and environment . name: Mixed inputs on: workflow_dispatch: inputs: ......
Read more >
How to provide multiple inputs for a manually triggered ...
So workflow_dispatch events actually support 3 input types; choice , environment , boolean . I don't think you'll be able to pass inputs...
Read more >
Add Inputs to GitHub Actions Workflows - YouTube
In this GitHub Actions Tutorial, we'll walk through how to add user inputs to workflow_dispatch triggers in your GitHub Actions workflow so ...
Read more >
Manually Trigger GitHub Actions Workflows
You can define input types that allow you to select from a constrained set of pre-defined options. This is particularly helpful for things...
Read more >
Configuring Manual Triggers In GitHub Actions With ` ...
Inputs allow you to provide additional data to your workflow when you trigger it manually. For example, you may want to provide a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found