mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
Add info statement about HTTP response
This commit is contained in:
parent
aa46387b46
commit
643c369303
1 changed files with 2 additions and 0 deletions
|
@ -311,6 +311,8 @@ class MagicNixCacheAction {
|
||||||
.post(`http://${hostAndPort}/api/workflow-finish`)
|
.post(`http://${hostAndPort}/api/workflow-finish`)
|
||||||
.json();
|
.json();
|
||||||
|
|
||||||
|
actionsCore.info(JSON.stringify(res));
|
||||||
|
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
this.failInStrictMode(
|
this.failInStrictMode(
|
||||||
`Failed to trigger workflow finish hook; expected HTTP status 200 from POST to /api/workflow-finish but got ${res.status} instead`,
|
`Failed to trigger workflow finish hook; expected HTTP status 200 from POST to /api/workflow-finish but got ${res.status} instead`,
|
||||||
|
|
Loading…
Reference in a new issue