fix download path logic when downloading a single artifact by id

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

No files matched your search

+3 -1
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