mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
lint
This commit is contained in:
parent
3b82141de2
commit
6f5ac232c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue