Only echo command if we are streaming the stdout
This commit is contained in:
parent
90c42c41ec
commit
edd7713837
6 changed files with 12 additions and 8 deletions
2
lib/setup-codeql.js
generated
2
lib/setup-codeql.js
generated
|
|
@ -405,7 +405,7 @@ const downloadCodeQL = async function (codeqlURL, maybeBundleVersion, maybeCliVe
|
|||
const toolcacheVersion = getCanonicalToolcacheVersion(maybeCliVersion, bundleVersion, logger);
|
||||
const toolcacheStart = performance.now();
|
||||
const toolcachedBundlePath = await toolcache.cacheDir(extractedBundlePath, "CodeQL", toolcacheVersion);
|
||||
logger.info(`Added CodeQL bundle to the tool cache (${performance.now() - toolcacheStart} ms).`);
|
||||
logger.info(`Added CodeQL bundle to the tool cache (${Math.round(performance.now() - toolcacheStart)} ms).`);
|
||||
// Defensive check: we expect `cacheDir` to copy the bundle to a new location.
|
||||
if (toolcachedBundlePath !== extractedBundlePath) {
|
||||
await (0, util_1.cleanUpGlob)(extractedBundlePath, "CodeQL bundle from temporary directory", logger);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue