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

Raise warning when action input does not match action.yml. #429

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

TingluoHuang
Copy link
Member

Fix: #428

{
if (!validInputs.Contains(input))
{
ExecutionContext.Warning($"Unrecognized input '{input}', valid inputs are ['{string.Join("', '", validInputs)}']");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider, "Unexpected input ..."

Copy link
Collaborator

@ericsciple ericsciple Apr 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how hard it would be to plumb the line/column/file info through.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we drive this change into manifestManager.ValidateInputs or something? And it could output a list of warnings?

@TingluoHuang TingluoHuang force-pushed the users/tihuang/warninvalidinput branch from 392e344 to 5f619b3 Compare April 21, 2020 21:07
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

Successfully merging this pull request may close these issues.

verify configuration directive names
2 participants