Skip to content

Commit 488ebbe

Browse files
committed
debug
1 parent b573477 commit 488ebbe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib/input.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { getInput } from "@actions/core";
2+
import Logger from "./log";
23

34
/**
45
* Alternative to @actions/core.getBooleanInput that supports default values
@@ -21,13 +22,15 @@ export function getOptionalInput(key: string): string | undefined {
2122
}
2223

2324
export function parseOptionalStringArrayInput(
25+
log: Logger,
2426
key: string
2527
): string[] | undefined {
2628
const input = getOptionalInput(key);
2729

30+
log.info(`input is ${input}`);
2831
if (input === undefined) {
2932
return [];
30-
} else if (input == "null") {
33+
} else if (input == "null" || input == null) {
3134
return undefined;
3235
}
3336

src/steps/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function run(
4343
auto_merge: getBooleanInput("auto_merge", false),
4444
payload,
4545
};
46-
const required_contexts = parseOptionalStringArrayInput("required_contexts")
46+
const required_contexts = parseOptionalStringArrayInput(log, "required_contexts")
4747
if (required_contexts !== undefined) {
4848
start_args["required_contexts"] = required_contexts;
4949
};

0 commit comments

Comments
 (0)