mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-08 16:16:16 +00:00
Remove internal debugging from @actions/core
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -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}`);
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
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}`);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user