From 355659bff273563439cd7fd7dfd81595a30e1f33 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 10 Jan 2024 15:15:52 -0500 Subject: [PATCH 1/2] 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' + ) + } } } From a244de5a621ac562efb2450e88968f4ad7c5a877 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 10 Jan 2024 15:17:47 -0500 Subject: [PATCH 2/2] ncc --- dist/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index d796fc9..fc7187a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -121113,7 +121113,6 @@ function run() { 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 = yield artifact_1.default.listArtifacts(Object.assign({ latest: true }, options)); artifacts = listArtifactResponse.artifacts; core.debug(`Found ${artifacts.length} artifacts in run`); @@ -121123,6 +121122,12 @@ function run() { artifacts = artifacts.filter(artifact => matcher.match(artifact.name)); 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'); + } + } } if (artifacts.length) { core.info(`Preparing to download the following artifacts:`);