Don't except if nix flake update fails

This commit is contained in:
Graham Christensen 2025-05-13 09:27:39 -04:00
parent 743a8831c3
commit dcd2ee07ca
3 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View File

@ -91182,7 +91182,8 @@ var UpdateFlakeLockAction = class extends DetSysAction {
}) })
); );
const execOptions = { const execOptions = {
cwd: this.pathToFlakeDir !== null ? this.pathToFlakeDir : void 0 cwd: this.pathToFlakeDir !== null ? this.pathToFlakeDir : void 0,
ignoreReturnCode: true
}; };
const exitCode = await exec.exec("nix", nixCommandArgs, execOptions); const exitCode = await exec.exec("nix", nixCommandArgs, execOptions);
if (exitCode !== 0) { if (exitCode !== 0) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -54,6 +54,7 @@ class UpdateFlakeLockAction extends DetSysAction {
const execOptions: actionsExec.ExecOptions = { const execOptions: actionsExec.ExecOptions = {
cwd: this.pathToFlakeDir !== null ? this.pathToFlakeDir : undefined, cwd: this.pathToFlakeDir !== null ? this.pathToFlakeDir : undefined,
ignoreReturnCode: true,
}; };
const exitCode = await actionsExec.exec("nix", nixCommandArgs, execOptions); const exitCode = await actionsExec.exec("nix", nixCommandArgs, execOptions);