mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
Update index.js
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user