mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
Reinstate debug statements
This commit is contained in:
parent
6551db427e
commit
fe4aeab234
1 changed files with 8 additions and 0 deletions
|
@ -277,6 +277,10 @@ class MagicNixCacheAction {
|
||||||
`http://${this.hostAndPort}/api/workflow-start`,
|
`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) {
|
if (res.statusCode !== 200) {
|
||||||
this.failInStrictMode(
|
this.failInStrictMode(
|
||||||
`Failed to trigger workflow start hook; expected status 200 but got (status: ${res.statusCode}, body: ${res.body})`,
|
`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`,
|
`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) {
|
if (res.statusCode !== 200) {
|
||||||
this.failInStrictMode(
|
this.failInStrictMode(
|
||||||
`Failed to trigger workflow finish hook; expected status 200 but got (status: ${res.statusCode}, body: ${res.body})`,
|
`Failed to trigger workflow finish hook; expected status 200 but got (status: ${res.statusCode}, body: ${res.body})`,
|
||||||
|
|
Loading…
Reference in a new issue