diff --git a/src/msdo-client.ts b/src/msdo-client.ts index 4b2f78d..e1d8e95 100644 --- a/src/msdo-client.ts +++ b/src/msdo-client.ts @@ -87,7 +87,7 @@ async function init() { export async function run(inputArgs: string[], telemetryEnvironment: string = 'github') { let cliFilePath: string = null; let args: string[] = []; - let debugDrop = process.env.GDN_DEBUG_DROP; + let debugDrop = process.env.GDN_DEBUG_DROP?.toLowerCase(); const gdnTaskLibFolder = path.resolve(__dirname); core.debug(`gdnTaskLibFolder = ${gdnTaskLibFolder}`); @@ -145,7 +145,7 @@ export async function run(inputArgs: string[], telemetryEnvironment: string = 'g // Include the debug drop option on the command line if applicable. core.debug(`GdnDebugDrop = ${debugDrop}`); - if (debugDrop) + if (debugDrop == 'true') { args.push('--debug-drop'); args.push('--debug-drop-path'); @@ -173,7 +173,7 @@ export async function run(inputArgs: string[], telemetryEnvironment: string = 'g // Package up debug drop if applicable. let debugStagingDir = ''; core.debug(`GdnDebugDrop = ${debugDrop}`); - if (debugDrop) { + if (debugDrop == 'true') { if (fs.existsSync(debugFolder)) { core.debug("Creating debug drop archive..."); let zippedOutput = getZippedFolder(debugFolder);