mirror of
https://github.com/actions/download-artifact.git
synced 2024-12-22 14:22:42 +00:00
clarify log messages when using pattern/merge-multiple params
This commit is contained in:
parent
6b208ae046
commit
355659bff2
1 changed files with 9 additions and 4 deletions
|
@ -75,10 +75,6 @@ async function run(): Promise<void> {
|
||||||
|
|
||||||
artifacts = [targetArtifact]
|
artifacts = [targetArtifact]
|
||||||
} else {
|
} else {
|
||||||
core.info(
|
|
||||||
`No input name specified, downloading all artifacts. Extra directory with the artifact name will be created for each download`
|
|
||||||
)
|
|
||||||
|
|
||||||
const listArtifactResponse = await artifactClient.listArtifacts({
|
const listArtifactResponse = await artifactClient.listArtifacts({
|
||||||
latest: true,
|
latest: true,
|
||||||
...options
|
...options
|
||||||
|
@ -94,6 +90,15 @@ async function run(): Promise<void> {
|
||||||
core.debug(
|
core.debug(
|
||||||
`Filtered from ${listArtifactResponse.artifacts.length} to ${artifacts.length} artifacts`
|
`Filtered from ${listArtifactResponse.artifacts.length} to ${artifacts.length} artifacts`
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
core.info(
|
||||||
|
'No input name or pattern filtered specified, downloading all artifacts'
|
||||||
|
)
|
||||||
|
if (!inputs.mergeMultiple) {
|
||||||
|
core.info(
|
||||||
|
'An extra directory with the artifact name will be created for each download'
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue