Skip to content

Commit

Permalink
Merge pull request #2 from SystemKeeper/extend-informations
Browse files Browse the repository at this point in the history
chore(log): Log why a PHP version was skipped/used
  • Loading branch information
icewind1991 authored Nov 25, 2024
2 parents 3b6f20f + c34976c commit 578c7d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ function copy(obj) {
version = parseFloat(version.toFixed(1));
if (await isPhpVersionReleased(version)) {
php.push(version.toFixed(1));
console.log(`Release for PHP Version ${version.toFixed(1)} exists`);
} else {
// no more minors for this major
version = Math.ceil(version) - 0.1;
console.log(`No release for PHP Version ${version.toFixed(1)} exists -> skipping`);
}
}
php.sort();
Expand All @@ -178,6 +180,10 @@ function copy(obj) {
if (await distroSupportsPhpVersion(version)) {
distroPhp.push(version)
availablePhp = version;

console.log(`Install candidates for PHP Version ${version.toFixed(1)} found`);
} else {
console.log(`No install candidates for PHP version ${version.toFixed(1)} found -> skipping`);
}
}

Expand Down

0 comments on commit 578c7d7

Please sign in to comment.