mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-04-21 09:20:16 +03:00
Update detsys-ts
This commit is contained in:
parent
8363f28293
commit
6d82bce8ec
5 changed files with 490 additions and 586 deletions
16
src/index.ts
16
src/index.ts
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue