fix download path logic when downloading a single artifact by id

This commit is contained in:
GrantBirki
2025-08-05 10:56:18 -07:00
parent 448e3f862a
commit fff8c148a8
2 changed files with 36 additions and 1 deletions

View File

@@ -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