From c93080475704b181784f9e3cd03ad2c35269fe32 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Mon, 20 May 2024 08:33:19 -0300 Subject: [PATCH] Move info statement --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1f2c015..c5af7e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -311,9 +311,8 @@ class MagicNixCacheAction { .post(`http://${hostAndPort}/api/workflow-finish`) .json(); - actionsCore.info(JSON.stringify(res)); - if (res.status !== 200) { + actionsCore.info(JSON.stringify(res)); this.failInStrictMode( `Failed to trigger workflow finish hook; expected HTTP status 200 from POST to /api/workflow-finish but got ${res.status} instead`, );