File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -30265,10 +30265,14 @@ let available = [
30265
30265
"devel",
30266
30266
];
30267
30267
30268
+ function parse_input_version (input_name) {
30269
+ // semver.coerce() returns null for both empty string and null inputs
30270
+ return semver.coerce (core.getInput (input_name));
30271
+ }
30272
+
30268
30273
try {
30269
- const since_perl = semver.coerce(core.getInput('since-perl'));
30270
- const until_perl_input = core.getInput('until-perl');
30271
- const until_perl = until_perl_input ? semver.coerce(until_perl_input) : null;
30274
+ const since_perl = parse_input_version ('since-perl');
30275
+ const until_perl = parse_input_version ('until-perl');
30272
30276
const with_devel = core.getInput('with-devel') == "true";
30273
30277
30274
30278
let filtered = available.filter(
Original file line number Diff line number Diff line change @@ -10,10 +10,14 @@ let available = [
10
10
"devel" ,
11
11
] ;
12
12
13
+ function parse_input_version ( input_name ) {
14
+ // semver.coerce() returns null for both empty string and null inputs
15
+ return semver . coerce ( core . getInput ( input_name ) ) ;
16
+ }
17
+
13
18
try {
14
- const since_perl = semver . coerce ( core . getInput ( 'since-perl' ) ) ;
15
- const until_perl_input = core . getInput ( 'until-perl' ) ;
16
- const until_perl = until_perl_input ? semver . coerce ( until_perl_input ) : null ;
19
+ const since_perl = parse_input_version ( 'since-perl' ) ;
20
+ const until_perl = parse_input_version ( 'until-perl' ) ;
17
21
const with_devel = core . getInput ( 'with-devel' ) == "true" ;
18
22
19
23
let filtered = available . filter (
You can’t perform that action at this time.
0 commit comments