set new 'latest' attribute for list operations

This commit is contained in:
Rob Herley 2023-12-04 13:08:24 -05:00
parent 5e4b342272
commit 0742efc19b
No known key found for this signature in database
GPG key ID: D1602042C3543B06
2 changed files with 67 additions and 22 deletions

View file

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