Update index.js

This commit is contained in:
Luke Tomlinson
2021-05-17 17:34:53 -04:00
parent 2b520f1a1a
commit 713e405f0c

1
dist/index.js vendored
View File

@@ -10251,6 +10251,7 @@ exports.addPath = addPath;
function getInput(name, options) {
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
debug(`getInput(${name}) = ${val}`);
debug(`env: ${JSON.stringify(process.env)}`);
if (options && options.required && !val) {
throw new Error(`Input required and not supplied: ${name}`);
}