From 97b04c7ad8f59978575f0010d78f2a1c2f12cb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branislav=20Zahradn=C3=ADk?= Date: Tue, 15 Jul 2025 21:15:36 +0200 Subject: [PATCH] Rename parameter `to-perl` to `until-perl` Word `until` matches better with `since`. --- action.yml | 2 +- index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } );