From 6f5ac232c5e69c6dc0a0bef58663741055cd2d62 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 13 Oct 2025 16:01:55 +0530 Subject: [PATCH] lint --- src/Appwrite/Platform/Tasks/SDKs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index f37f04da38..2fb15c5f7d 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -287,11 +287,11 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND if (!empty($latestCommitSha)) { $latestReleaseTagCommand = 'gh api repos/' . $repoName . '/releases --jq ".[0] | .tag_name" 2>/dev/null'; $latestReleaseTag = trim(\shell_exec($latestReleaseTagCommand) ?? ''); - + if (!empty($latestReleaseTag)) { $tagCommitCommand = 'gh api repos/' . $repoName . '/git/ref/tags/' . $latestReleaseTag . ' --jq ".object.sha" 2>/dev/null'; $tagCommitSha = trim(\shell_exec($tagCommitCommand) ?? ''); - + if (!empty($tagCommitSha) && $latestCommitSha === $tagCommitSha) { Console::warning("Latest commit on {$releaseTarget} already has a release ({$latestReleaseTag}) for {$language['name']} SDK, skipping to avoid empty release..."); continue;