From 56c2d7ea8c430519f69356bfcb0aeb31318fd416 Mon Sep 17 00:00:00 2001
From: Ryan Ghadimi <114221941+GhadimiR@users.noreply.github.com>
Date: Wed, 12 Mar 2025 16:21:59 +0000
Subject: [PATCH] Make work as intended

---
 dist/index.js            | 2 +-
 src/download-artifact.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/index.js b/dist/index.js
index 17963f0..594cdff 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -118782,7 +118782,7 @@ function run() {
             for (let i = 0; i < results.length; i++) {
                 const outcome = results[i];
                 const artifactName = chunk[i].name;
-                if (!outcome.digestMismatch) {
+                if (outcome.digestMismatch) {
                     core.warning(`Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`);
                 }
             }
diff --git a/src/download-artifact.ts b/src/download-artifact.ts
index dda08c6..e149804 100644
--- a/src/download-artifact.ts
+++ b/src/download-artifact.ts
@@ -132,7 +132,7 @@ async function run(): Promise<void> {
       const outcome = results[i]
       const artifactName = chunk[i].name
 
-      if (!outcome.digestMismatch) {
+      if (outcome.digestMismatch) {
         core.warning(
           `Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`
         )