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.

Relax the 10-parameter input limitation on workflow_dispatch

See original GitHub issue

Describe the bug

Workflows with more than 10 parameters are considered invalid. Crucially, this also applies to reusable workflows used from a workflow that could be dispatched manually.

To Reproduce Steps to reproduce the behavior:

  1. Write a workflow with at least 11 inputs
  2. set it to run on: { workflow_dispatch: }
  3. See error upon execution

Expected behavior The workflow does not trigger errors

Runner Version and Platform

Current GHA hosted runner

What’s not working?

 Check failure on line 1 in .github/workflows/build-and-deploy.yml

GitHub Actions
/ .github/workflows/build-and-deploy.yml
Invalid workflow file
handling usage of workflow "DanySK/workflows/.github/workflows/build-and-deploy-gradle-project.yml@master": workflow is invalid: you may only define up to 10 `inputs` for a `workflow_dispatch` event

Note: I am not sure that runner is the correct repository for reporting this. Please let me know if I should open the issue report elsewhere.

The problem is also being discussed here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:35
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
bbrzoskacommented, Nov 18, 2021

We’re also bumping into this. Our use case is using composite action and it requires many optional configuration options.

One workaround is to accept a JSON payload and deserialize within an action, but that’s pretty nasty and error prone when triggering from the UI.

The limit should be at least 25 to cover most use cases.

5reactions
TingluoHuangcommented, Dec 13, 2021

Please report this to https://github.community/c/code-to-cloud/github-actions/41 the runner itself has no control over this limitation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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