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})`,