mirror of
https://gitea.com/actions/download-artifact.git
synced 2026-02-02 20:34:29 +07:00
Don't attempt to un-zip non-zipped downloads
This commit is contained in:
@@ -4,7 +4,7 @@ import * as core from '@actions/core'
|
||||
import artifactClient from '@actions/artifact'
|
||||
import type {Artifact, FindOptions} from '@actions/artifact'
|
||||
import {Minimatch} from 'minimatch'
|
||||
import {Inputs, Outputs} from './constants'
|
||||
import {Inputs, Outputs} from './constants.js'
|
||||
|
||||
const PARALLEL_DOWNLOADS = 5
|
||||
|
||||
@@ -26,7 +26,10 @@ export async function run(): Promise<void> {
|
||||
mergeMultiple: core.getBooleanInput(Inputs.MergeMultiple, {
|
||||
required: false
|
||||
}),
|
||||
artifactIds: core.getInput(Inputs.ArtifactIds, {required: false})
|
||||
artifactIds: core.getInput(Inputs.ArtifactIds, {required: false}),
|
||||
skipDecompress: core.getBooleanInput(Inputs.SkipDecompress, {
|
||||
required: false
|
||||
})
|
||||
}
|
||||
|
||||
if (!inputs.path) {
|
||||
@@ -179,7 +182,8 @@ export async function run(): Promise<void> {
|
||||
artifacts.length === 1
|
||||
? resolvedPath
|
||||
: path.join(resolvedPath, artifact.name),
|
||||
expectedHash: artifact.digest
|
||||
expectedHash: artifact.digest,
|
||||
skipDecompress: inputs.skipDecompress
|
||||
})
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user