diff --git a/dist/index.js b/dist/index.js index 8c4fc64..48f83a8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -118786,7 +118786,7 @@ function run() { } for (const dlPromise of downloadPromises) { const outcome = yield dlPromise; - if (!outcome.digestMismatch) { + if (outcome.digestMismatch) { core.warning(`Artifact digest validation failed. Please verify the integrity of the artifact.`); } } diff --git a/src/download-artifact.ts b/src/download-artifact.ts index c8da268..71852f3 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -129,7 +129,7 @@ async function run(): Promise { for (const dlPromise of downloadPromises) { const outcome = await dlPromise - if (!outcome.digestMismatch) { + if (outcome.digestMismatch) { core.warning( `Artifact digest validation failed. Please verify the integrity of the artifact.` )