mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-23 05:22:07 +01:00
Turn info messages into warnings
This commit is contained in:
parent
7afbb0a392
commit
b2e770e214
3 changed files with 19 additions and 9 deletions
13
dist/index.js
generated
vendored
13
dist/index.js
generated
vendored
|
@ -95697,10 +95697,15 @@ var MagicNixCacheAction = class extends DetSysAction {
|
|||
}
|
||||
core.debug(`back from post: ${res.body}`);
|
||||
} catch (e) {
|
||||
core.info(`Error marking the workflow as started:`);
|
||||
core.info((0,external_node_util_.inspect)(e));
|
||||
core.info(`Magic Nix Cache may not be running for this workflow.`);
|
||||
this.failOnError(`Magic Nix Cache failed to start: ${(0,external_node_util_.inspect)(e)}`);
|
||||
if (this.strictMode) {
|
||||
core.setFailed(`Magic Nix Cache failed to start: ${(0,external_node_util_.inspect)(e)}`);
|
||||
} else {
|
||||
core.warning(`Error marking the workflow as started:`);
|
||||
core.warning((0,external_node_util_.inspect)(e));
|
||||
core.warning(
|
||||
`Magic Nix Cache may not be running for this workflow.`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
async tearDownAutoCache() {
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
13
src/index.ts
13
src/index.ts
|
@ -312,10 +312,15 @@ class MagicNixCacheAction extends DetSysAction {
|
|||
|
||||
actionsCore.debug(`back from post: ${res.body}`);
|
||||
} catch (e: unknown) {
|
||||
actionsCore.info(`Error marking the workflow as started:`);
|
||||
actionsCore.info(inspect(e));
|
||||
actionsCore.info(`Magic Nix Cache may not be running for this workflow.`);
|
||||
this.failOnError(`Magic Nix Cache failed to start: ${inspect(e)}`);
|
||||
if (this.strictMode) {
|
||||
actionsCore.setFailed(`Magic Nix Cache failed to start: ${inspect(e)}`);
|
||||
} else {
|
||||
actionsCore.warning(`Error marking the workflow as started:`);
|
||||
actionsCore.warning(inspect(e));
|
||||
actionsCore.warning(
|
||||
`Magic Nix Cache may not be running for this workflow.`,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue