From ae7a633d328be5fa1ec97f14cf09719aea878d66 Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi <114221941+GhadimiR@users.noreply.github.com> Date: Tue, 11 Mar 2025 22:23:54 +0000 Subject: [PATCH] Invert condition (demo) --- src/download-artifact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/download-artifact.ts b/src/download-artifact.ts index 71852f3..c8da268 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.` )