Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Ignore unexpected inputs #80

Open
SimonWoidig opened this issue Nov 5, 2024 · 0 comments
Open

Feature request: Ignore unexpected inputs #80

SimonWoidig opened this issue Nov 5, 2024 · 0 comments

Comments

@SimonWoidig
Copy link

Currently, I am passing a JSON parsed from a command - think slash commands. Well we require multiple fields (like customer, arg and action) which are parsed from the comment. The result is a JSON with some field not needed for some workflows, since not all workflows require the customer input.
Currently the workaround is to specify all of the inputs in the workflow, even the ones that are not needed.
My idea is to add an input - let's name it ignore-unexpected-inputs - to the benc-uk/workflow-dispatch action to set whether the extra inputs should be ignored, maybe with a warning.

Currently:

...
🚀 Calling GitHub API to dispatch workflow...
Error: Unexpected inputs provided: ["action", "arg", "customer"] - https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event

Desired:

...
Warning: Not passing the unexpected inputs (["action", "arg", "customer"]) to the workflow.
🚀 Calling GitHub API to dispatch workflow...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant