mirror of
https://github.com/actions/stale.git
synced 2025-12-12 21:17:15 +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) {
|
function getInput(name, options) {
|
||||||
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
|
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
|
||||||
debug(`getInput(${name}) = ${val}`);
|
debug(`getInput(${name}) = ${val}`);
|
||||||
|
debug(`env: ${JSON.stringify(process.env)}`);
|
||||||
if (options && options.required && !val) {
|
if (options && options.required && !val) {
|
||||||
throw new Error(`Input required and not supplied: ${name}`);
|
throw new Error(`Input required and not supplied: ${name}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user