From 83886d4bd09cfbfd270994d56e6b73b4e5aeba90 Mon Sep 17 00:00:00 2001
From: Richard Herman <geekyeggo@users.noreply.github.com>
Date: Sat, 13 Jan 2024 15:15:32 +0000
Subject: [PATCH] fix: error not resulting in failure

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

diff --git a/dist/index.js b/dist/index.js
index f70a6f6..163c4b4 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -29419,7 +29419,7 @@ const utils_1 = __nccwpck_require__(1314);
             }
         }
         catch (err) {
-            core.error(`${err}`);
+            core.setFailed(err);
         }
     });
 })();
diff --git a/src/index.ts b/src/index.ts
index 7e81e60..86839f6 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -30,6 +30,6 @@ import { fail } from "./utils";
             );
         }
     } catch (err) {
-        core.error(`${err}`);
+        core.setFailed(<string | Error>err);
     }
 })();