From 2439186eedaff9554375e40a7c5d100f2132e854 Mon Sep 17 00:00:00 2001
From: Ryan Ghadimi <114221941+GhadimiR@users.noreply.github.com>
Date: Tue, 18 Mar 2025 21:25:22 +0000
Subject: [PATCH] Fix bug introduced in 4.2.0

---
 src/download-artifact.ts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/download-artifact.ts b/src/download-artifact.ts
index e149804..b08bce8 100644
--- a/src/download-artifact.ts
+++ b/src/download-artifact.ts
@@ -138,11 +138,10 @@ async function run(): Promise<void> {
         )
       }
     }
-
-    core.info(`Total of ${artifacts.length} artifact(s) downloaded`)
-    core.setOutput(Outputs.DownloadPath, resolvedPath)
-    core.info('Download artifact has finished successfully')
   }
+  core.info(`Total of ${artifacts.length} artifact(s) downloaded`)
+  core.setOutput(Outputs.DownloadPath, resolvedPath)
+  core.info('Download artifact has finished successfully')
 }
 
 run().catch(err =>