fix distro version check logging

This commit is contained in:
Robin Appelman 2026-02-17 15:34:35 +01:00
commit 526e105a38
2 changed files with 10 additions and 2 deletions

7
dist/index.js vendored
View file

@ -42679,9 +42679,11 @@ function copy(obj) {
version = parseFloat(version.toFixed(1)); version = parseFloat(version.toFixed(1));
if (await isPhpVersionReleased(version)) { if (await isPhpVersionReleased(version)) {
php.push(version.toFixed(1)); php.push(version.toFixed(1));
console.log(`Release for PHP Version ${version.toFixed(1)} exists`);
} else { } else {
// no more minors for this major // no more minors for this major
version = Math.ceil(version) - 0.1; version = Math.ceil(version) - 0.1;
console.log(`No release for PHP Version ${version.toFixed(1)} exists -> skipping`);
} }
} }
php.sort(); php.sort();
@ -42692,6 +42694,10 @@ function copy(obj) {
if (await distroSupportsPhpVersion(version)) { if (await distroSupportsPhpVersion(version)) {
distroPhp.push(version) distroPhp.push(version)
availablePhp = version; availablePhp = version;
console.log(`Install candidates for PHP Version ${version} found`);
} else {
console.log(`No install candidates for PHP version ${version} found -> skipping`);
} }
} }
@ -42764,6 +42770,7 @@ function copy(obj) {
})); }));
} catch (error) { } catch (error) {
console.error(error);
core.setFailed(error.message); core.setFailed(error.message);
} }
})() })()

View file

@ -181,9 +181,9 @@ function copy(obj) {
distroPhp.push(version) distroPhp.push(version)
availablePhp = version; availablePhp = version;
console.log(`Install candidates for PHP Version ${version.toFixed(1)} found`); console.log(`Install candidates for PHP Version ${version} found`);
} else { } else {
console.log(`No install candidates for PHP version ${version.toFixed(1)} found -> skipping`); console.log(`No install candidates for PHP version ${version} found -> skipping`);
} }
} }
@ -256,6 +256,7 @@ function copy(obj) {
})); }));
} catch (error) { } catch (error) {
console.error(error);
core.setFailed(error.message); core.setFailed(error.message);
} }
})() })()