Remove mago analyse, fix update check.

This commit is contained in:
James Cole
2026-02-21 06:40:51 +01:00
parent e23d0de8f9
commit 091f264f3e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ jobs:
rm -rf vendor composer.lock
composer update --no-scripts --no-plugins -q
mago format || true
mago analyze --reporting-format=github || true
# mago analyze --reporting-format=github || true
sudo chown -R runner:docker resources/lang
.ci/phpcs.sh || true
- name: Calculate variables
@@ -63,12 +63,12 @@ class GitHubUpdateRequest implements UpdateRequestInterface
// if current version is "develop", compare date.
if (str_contains($currentVersion, 'develop')) {
Log::debug(sprintf('Compare with current version "%s", built on %s', $currentVersion, $currentBuild->format('Y-m-d H:i')));
if ($currentBuild->gt($newest['published_at'])) {
if ($currentBuild->lt($newest['published_at'])) {
Log::debug(sprintf('Current build %s is older than newest build %s, so a new release is available.', $currentBuild->format('Y-m-d H:i'), $newest['published_at']->format('Y-m-d H:i')));
$response->setNewVersionAvailable(true);
return $response;
}
if ($currentBuild->lt($newest['published_at'])) {
if ($currentBuild->gt($newest['published_at'])) {
Log::debug(sprintf('Current build %s is newer than newest build %s, so NO new release is available.', $currentBuild->format('Y-m-d H:i'), $newest['published_at']->format('Y-m-d H:i')));
$response->setNewVersionAvailable(false);
return $response;