Skip to content

Commit 97b04c7

Browse files
committed
Rename parameter to-perl to until-perl
Word `until` matches better with `since`.
1 parent edf86e4 commit 97b04c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
description: "List all Perl versions since this (including this). Example: 5.10"
66
type: string
77
required: true
8-
to-perl:
8+
until-perl:
99
description: "List all Perl versions up to this (including this). Example: 5.30"
1010
type: string
1111
required: false

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let available = [
1212

1313
try {
1414
const since_perl = semver.coerce(core.getInput('since-perl'));
15-
const to_perl_input = core.getInput('to-perl');
16-
const to_perl = to_perl_input ? semver.coerce(to_perl_input) : null;
15+
const until_perl_input = core.getInput('until-perl');
16+
const until_perl = until_perl_input ? semver.coerce(until_perl_input) : null;
1717
const with_devel = core.getInput('with-devel') == "true";
1818

1919
let filtered = available.filter(
@@ -23,7 +23,7 @@ try {
2323
}
2424
const version = semver.coerce(item);
2525
const meetsLowerBound = semver.gte(version, since_perl);
26-
const meetsUpperBound = !to_perl || semver.lte(version, to_perl);
26+
const meetsUpperBound = !until_perl || semver.lte(version, until_perl);
2727
return meetsLowerBound && meetsUpperBound;
2828
}
2929
);

0 commit comments

Comments
 (0)