From fe4aeab234ad45b830744f9883d387bd973de6b1 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Mon, 20 May 2024 13:58:18 -0300 Subject: [PATCH] Reinstate debug statements --- src/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.ts b/src/index.ts index 11740e3..1784f47 100644 --- a/src/index.ts +++ b/src/index.ts @@ -277,6 +277,10 @@ class MagicNixCacheAction { `http://${this.hostAndPort}/api/workflow-start`, ); + actionsCore.debug( + `Response from POST to /api/workflow-start: (status: ${res.statusCode}, body: ${res.body})`, + ); + if (res.statusCode !== 200) { this.failInStrictMode( `Failed to trigger workflow start hook; expected status 200 but got (status: ${res.statusCode}, body: ${res.body})`, @@ -316,6 +320,10 @@ class MagicNixCacheAction { `http://${this.hostAndPort}/api/workflow-finish`, ); + actionsCore.debug( + `Response from POST to /api/workflow-finish: (status: ${res.statusCode}, body: ${res.body})`, + ); + if (res.statusCode !== 200) { this.failInStrictMode( `Failed to trigger workflow finish hook; expected status 200 but got (status: ${res.statusCode}, body: ${res.body})`,