Display artifact name in some post-filter error messages

This commit is contained in:
James M. Greene
2023-12-22 13:16:13 -06:00
parent e03d00b325
commit 5cba2b1245
4 changed files with 9 additions and 9 deletions

6
dist/index.js generated vendored
View File

@@ -146608,7 +146608,7 @@ async function getArtifactMetadata({ artifactName }) {
}
try {
core.info(`Fetching artifact metadata for ${artifactName} in this workflow run`)
core.info(`Fetching artifact metadata for "${artifactName}" in this workflow run`)
let response
try {
@@ -146627,11 +146627,11 @@ async function getArtifactMetadata({ artifactName }) {
if (artifactCount === 0) {
throw new Error(
'No artifacts found for this workflow run. Ensure artifacts are uploaded with actions/artifact@v4 or later.'
`No artifacts named "${artifactName}" were found for this workflow run. Ensure artifacts are uploaded with actions/artifact@v4 or later.`
)
} else if (artifactCount > 1) {
throw new Error(
`Multiple artifacts unexpectedly found for this workflow run. Artifact count is ${artifactCount}.`
`Multiple artifacts named "${artifactName}" were unexpectedly found for this workflow run. Artifact count is ${artifactCount}.`
)
}

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long