Update detsys-ts

This commit is contained in:
Graham Christensen 2024-05-06 17:34:23 -04:00
parent 8363f28293
commit 6d82bce8ec
5 changed files with 490 additions and 586 deletions

View file

@ -21,11 +21,8 @@ class UpdateFlakeLockAction {
this.idslib = new IdsToolbox(options);
this.commitMessage = inputs.getString("commit-msg");
this.flakeInputs = inputs.getCommaSeparatedArrayOfStrings("inputs", true);
this.nixOptions = inputs.getCommaSeparatedArrayOfStrings(
"nix-options",
true,
);
this.flakeInputs = inputs.getArrayOfStrings("inputs", "comma");
this.nixOptions = inputs.getArrayOfStrings("nix-options", "comma");
this.pathToFlakeDir = inputs.getStringOrNull("path-to-flake-dir");
}
@ -41,6 +38,15 @@ class UpdateFlakeLockAction {
this.commitMessage,
);
actionsCore.debug(
JSON.stringify({
options: this.nixOptions,
inputs: this.flakeInputs,
message: this.commitMessage,
args: nixCommandArgs,
}),
);
const execOptions: actionsExec.ExecOptions = {};
if (this.pathToFlakeDir !== null) {
execOptions.cwd = this.pathToFlakeDir;