Remove internal debugging from @actions/core
This commit is contained in:
Vendored
-2
@@ -220,8 +220,6 @@ 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()}`] || '';
|
||||||
process.stdout.write(`@actions/core getInput(${JSON.stringify(name)}): ${JSON.stringify(val)}\n`)
|
|
||||||
process.stdout.write(`process.env = ${JSON.stringify(process.env)}\n`)
|
|
||||||
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}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -220,8 +220,6 @@ 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()}`] || '';
|
||||||
process.stdout.write(`@actions/core getInput(${JSON.stringify(name)}): ${JSON.stringify(val)}\n`)
|
|
||||||
process.stdout.write(`process.env = ${JSON.stringify(process.env)}\n`)
|
|
||||||
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}`);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user