From 5b9d385f6f25d9459d6ed4703080af4e96443a1a Mon Sep 17 00:00:00 2001 From: StephenHodgson Date: Sat, 13 Dec 2025 16:39:38 -0500 Subject: [PATCH] build --- dist/restore-only/index.js | 11 +++++++---- dist/save-only/index.js | 11 +++++++---- dist/save/index.js | 11 +++++++---- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index b4d40a2..764ff81 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -44358,12 +44358,15 @@ function getInputAsInt(name, options) { return value; } function getCompressionLevel(name, options) { - const compressionLevel = getInputAsInt(name, options); - if (compressionLevel === undefined) { + const rawValue = core.getInput(name, options); + if (rawValue === "") { return undefined; } - if (compressionLevel > 9) { - logWarning(`Invalid compression-level provided: ${compressionLevel}. Expected a value between 0 (no compression) and 9 (maximum compression).`); + const compressionLevel = parseInt(rawValue, 10); + if (isNaN(compressionLevel) || + compressionLevel < 0 || + compressionLevel > 9) { + logWarning(`Invalid compression-level provided: ${rawValue}. Expected a value between 0 (no compression) and 9 (maximum compression).`); return undefined; } return compressionLevel; diff --git a/dist/save-only/index.js b/dist/save-only/index.js index ff41959..e1f9be1 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -44375,12 +44375,15 @@ function getInputAsInt(name, options) { return value; } function getCompressionLevel(name, options) { - const compressionLevel = getInputAsInt(name, options); - if (compressionLevel === undefined) { + const rawValue = core.getInput(name, options); + if (rawValue === "") { return undefined; } - if (compressionLevel > 9) { - logWarning(`Invalid compression-level provided: ${compressionLevel}. Expected a value between 0 (no compression) and 9 (maximum compression).`); + const compressionLevel = parseInt(rawValue, 10); + if (isNaN(compressionLevel) || + compressionLevel < 0 || + compressionLevel > 9) { + logWarning(`Invalid compression-level provided: ${rawValue}. Expected a value between 0 (no compression) and 9 (maximum compression).`); return undefined; } return compressionLevel; diff --git a/dist/save/index.js b/dist/save/index.js index d5a1c98..a1da05d 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -44375,12 +44375,15 @@ function getInputAsInt(name, options) { return value; } function getCompressionLevel(name, options) { - const compressionLevel = getInputAsInt(name, options); - if (compressionLevel === undefined) { + const rawValue = core.getInput(name, options); + if (rawValue === "") { return undefined; } - if (compressionLevel > 9) { - logWarning(`Invalid compression-level provided: ${compressionLevel}. Expected a value between 0 (no compression) and 9 (maximum compression).`); + const compressionLevel = parseInt(rawValue, 10); + if (isNaN(compressionLevel) || + compressionLevel < 0 || + compressionLevel > 9) { + logWarning(`Invalid compression-level provided: ${rawValue}. Expected a value between 0 (no compression) and 9 (maximum compression).`); return undefined; } return compressionLevel;