Merge pull request #130 from github/joshmgross/validate-undefined-inputs

Validate inputs when none are defined
This commit is contained in:
Josh Gross
2023-02-07 12:18:47 -05:00
committed by GitHub
2 changed files with 1 additions and 2 deletions
@@ -32,7 +32,7 @@ export function convertWorkflowJobInputs(context: TemplateContext, job: Reusable
if (inputValues !== undefined) {
for (const [_, [name, value]] of inputValues) {
if (inputDefinitions !== undefined && !inputDefinitions.has(name.toLowerCase())) {
if (!inputDefinitions?.has(name.toLowerCase())) {
context.error(value, `Invalid input, ${name} is not defined in the referenced workflow.`);
}
}
@@ -1,7 +1,6 @@
include-source: false # Drop file/line/col from output
skip:
- Go
- TypeScript
---
on: push
jobs: