mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-19 05:59:53 +08:00
fix download path logic when downloading a single artifact by id
This commit is contained in:
@@ -174,7 +174,9 @@ export async function run(): Promise<void> {
|
||||
promise: artifactClient.downloadArtifact(artifact.id, {
|
||||
...options,
|
||||
path:
|
||||
isSingleArtifactDownload || inputs.mergeMultiple
|
||||
isSingleArtifactDownload ||
|
||||
inputs.mergeMultiple ||
|
||||
artifacts.length === 1
|
||||
? resolvedPath
|
||||
: path.join(resolvedPath, artifact.name),
|
||||
expectedHash: artifact.digest
|
||||
|
Reference in New Issue
Block a user