File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import { 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
2324export 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
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments