Update detsys-ts

This commit is contained in:
Luc Perkins 2024-05-23 19:19:07 -03:00
parent c16b76233e
commit dccc3175bf
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
6 changed files with 89 additions and 134 deletions

View file

@ -1,4 +1,3 @@
import { determineFlakeDirectories } from "./inputs.js";
import { makeNixCommandArgs } from "./nix.js";
import * as actionsCore from "@actions/core";
import * as actionsExec from "@actions/exec";
@ -25,13 +24,7 @@ class UpdateFlakeLockAction extends DetSysAction {
this.flakeInputs = inputs.getArrayOfStrings("inputs", "space");
this.nixOptions = inputs.getArrayOfStrings("nix-options", "space");
this.pathToFlakeDir = inputs.getStringOrNull("path-to-flake-dir");
const flakeDirsInput = inputs.getStringOrNull("flake-dirs");
if (flakeDirsInput !== null) {
this.flakeDirs = determineFlakeDirectories(flakeDirsInput);
} else {
this.flakeDirs = null;
}
this.flakeDirs = inputs.getArrayOfStringsOrNull("flake-dirs", "space");
this.validateInputs();
}