diff --git a/action.yml b/action.yml index 9143d0b..8575436 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ inputs: description: "List all Perl versions since this (including this). Example: 5.10" type: string required: true - to-perl: + until-perl: description: "List all Perl versions up to this (including this). Example: 5.30" type: string required: false diff --git a/index.js b/index.js index 9fce36c..0d18d6c 100644 --- a/index.js +++ b/index.js @@ -12,8 +12,8 @@ let available = [ try { const since_perl = semver.coerce(core.getInput('since-perl')); - const to_perl_input = core.getInput('to-perl'); - const to_perl = to_perl_input ? semver.coerce(to_perl_input) : null; + const until_perl_input = core.getInput('until-perl'); + const until_perl = until_perl_input ? semver.coerce(until_perl_input) : null; const with_devel = core.getInput('with-devel') == "true"; let filtered = available.filter( @@ -23,7 +23,7 @@ try { } const version = semver.coerce(item); const meetsLowerBound = semver.gte(version, since_perl); - const meetsUpperBound = !to_perl || semver.lte(version, to_perl); + const meetsUpperBound = !until_perl || semver.lte(version, until_perl); return meetsLowerBound && meetsUpperBound; } );