Skip to content

Commit

Permalink
Output current and latest version before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ragulka committed Sep 17, 2024
1 parent 05407b3 commit a17ff91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/update-php-scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ function downloadLatestRelease($downloadUrl) {
$currentVersion = '0.0.0'; // Default version if no tags are present
}

echo "Current version: $currentVersion" . PHP_EOL;
echo "Latest version: $newVersion" . PHP_EOL;

if (version_compare($newVersion, $currentVersion, '>')) {
echo "Current version: $currentVersion" . PHP_EOL;
echo "New version: $newVersion" . PHP_EOL;
echo "Updating PHP Scoper to version: $newVersion" . PHP_EOL;

// Update composer.json
updateComposerJson($newPhpVersion);
Expand Down

0 comments on commit a17ff91

Please sign in to comment.