Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Feb 10, 2024
1 parent 546d3b2 commit fe13b3a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ exports.getInputs = void 0;
const core = __importStar(__nccwpck_require__(2186));
const Shellwords = __importStar(__nccwpck_require__(8519));
function getInputs() {
const rawWorkingDirectory = core.getInput("working-directory");
const rawStackYaml = core.getInput("stack-yaml");
return {
workingDirectory: core.getInput("working-directory", { required: true }),
stackYaml: core.getInput("stack-yaml", { required: true }),
workingDirectory: rawWorkingDirectory === "" ? null : rawWorkingDirectory,
stackYaml: rawStackYaml === "" ? "stack.yaml" : rawStackYaml,
test: core.getBooleanInput("test"),
stackArguments: getShellWordsInput("stack-arguments", { required: true }),
stackArguments: getShellWordsInput("stack-arguments"),
stackSetupArguments: getShellWordsInput("stack-setup-arguments"),
stackQueryArguments: getShellWordsInput("stack-query-arguments"),
stackBuildArguments: getShellWordsInput("stack-build-arguments"),
Expand Down Expand Up @@ -255,7 +257,7 @@ async function test(stack, inputs) {
async function run() {
try {
const inputs = (0, inputs_1.getInputs)();
if (inputs.workingDirectory !== "" && inputs.workingDirectory !== ".") {
if (inputs.workingDirectory) {
core.info(`Change directory: ${inputs.workingDirectory}`);
process.chdir(inputs.workingDirectory);
}
Expand Down

0 comments on commit fe13b3a

Please sign in to comment.