From 355659bff273563439cd7fd7dfd81595a30e1f33 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 10 Jan 2024 15:15:52 -0500 Subject: [PATCH] clarify log messages when using pattern/merge-multiple params --- src/download-artifact.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/download-artifact.ts b/src/download-artifact.ts index 8ae890f..aedfe12 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -75,10 +75,6 @@ async function run(): Promise { artifacts = [targetArtifact] } 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({ latest: true, ...options @@ -94,6 +90,15 @@ async function run(): Promise { core.debug( `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' + ) + } } }