diff --git a/src/download-artifact.ts b/src/download-artifact.ts index b32a7be..31a65ce 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -8,7 +8,14 @@ async function run(): Promise { try { const name = core.getInput(Inputs.Name, {required: false}) const path = core.getInput(Inputs.Path, {required: false}) - + const dontextract = core.getInput(Inputs.Dontextract, {required: false}) + let stayGzipped + if(dontextract == "True") { + stayGzipped = True + } else { + stayGzipped = False + } + let resolvedPath // resolve tilde expansions, path.replace only replaces the first occurrence of a pattern if (path.startsWith(`~`)) { @@ -43,7 +50,8 @@ async function run(): Promise { const downloadResponse = await artifactClient.downloadArtifact( name, resolvedPath, - downloadOptions + downloadOptions, + stayGzipped ) core.info( `Artifact ${downloadResponse.artifactName} was downloaded to ${downloadResponse.downloadPath}`