mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-19 05:59:53 +08:00
set new 'latest' attribute for list operations
This commit is contained in:
@@ -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