mirror of
https://github.com/actions/download-artifact
synced 2026-10-22 07:40:40 +02:00
set new 'latest' attribute for list operations
This commit is contained in:
2 files changed
+67
-22
No files matched your search
@@ -76,7 +76,10 @@ async function run(): Promise<void> {
|
||||
`No input name specified, downloading all artifacts. Extra directory with the artifact name will be created for each download`
|
||||
)
|
||||
|
||||
const listArtifactResponse = await artifactClient.listArtifacts(options)
|
||||
const listArtifactResponse = await artifactClient.listArtifacts({
|
||||
latest: true,
|
||||
...options
|
||||
})
|
||||
|
||||
if (listArtifactResponse.artifacts.length === 0) {
|
||||
throw new Error(
|
||||
|
||||
Reference in new issue
Block a user