set new 'latest' attribute for list operations
Some checks failed
Code scanning - action / CodeQL-Build (push) Failing after 6s
Test / Build (ubuntu-latest) (push) Failing after 6s
Test / Build (macos-latest) (push) Has been cancelled
Test / Build (windows-latest) (push) Has been cancelled
Some checks failed
Code scanning - action / CodeQL-Build (push) Failing after 6s
Test / Build (ubuntu-latest) (push) Failing after 6s
Test / Build (macos-latest) (push) Has been cancelled
Test / Build (windows-latest) (push) Has been cancelled
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