mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Merge pull request #10641 from appwrite/update-dotnet-sdk-0.21.2
Update .NET SDK to 0.21.2 and improve release detection
This commit is contained in:
commit
3e47f9442f
4 changed files with 21 additions and 12 deletions
|
|
@ -357,7 +357,7 @@ return [
|
|||
[
|
||||
'key' => 'dotnet',
|
||||
'name' => '.NET',
|
||||
'version' => '0.21.1',
|
||||
'version' => '0.21.2',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
||||
'package' => 'https://www.nuget.org/packages/Appwrite',
|
||||
'enabled' => true,
|
||||
|
|
|
|||
12
composer.lock
generated
12
composer.lock
generated
|
|
@ -5004,16 +5004,16 @@
|
|||
"packages-dev": [
|
||||
{
|
||||
"name": "appwrite/sdk-generator",
|
||||
"version": "1.4.3",
|
||||
"version": "1.4.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||
"reference": "e1ca749398189f36ec6d6afb8e9f64e9cb37e0a3"
|
||||
"reference": "a20b20cfd70a1879f0d0fb2b4f669aa5ed836c49"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/e1ca749398189f36ec6d6afb8e9f64e9cb37e0a3",
|
||||
"reference": "e1ca749398189f36ec6d6afb8e9f64e9cb37e0a3",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/a20b20cfd70a1879f0d0fb2b4f669aa5ed836c49",
|
||||
"reference": "a20b20cfd70a1879f0d0fb2b4f669aa5ed836c49",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -5049,9 +5049,9 @@
|
|||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||
"support": {
|
||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/1.4.3"
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/1.4.4"
|
||||
},
|
||||
"time": "2025-10-01T06:25:19+00:00"
|
||||
"time": "2025-10-13T09:20:49+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/annotations",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 0.21.2
|
||||
|
||||
* Fix: handle Object[] during array deserialization
|
||||
|
||||
## 0.21.1
|
||||
|
||||
* Add transaction support for Databases and TablesDB
|
||||
|
|
|
|||
|
|
@ -285,12 +285,17 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
$latestCommitSha = trim(\shell_exec($latestCommitCommand) ?? '');
|
||||
|
||||
if (!empty($latestCommitSha)) {
|
||||
$commitReleasesCommand = 'gh api repos/' . $repoName . '/releases --jq ".[] | select(.target_commitish == \"' . $releaseTarget . '\") | .tag_name" 2>/dev/null | head -n 1';
|
||||
$existingCommitRelease = trim(\shell_exec($commitReleasesCommand) ?? '');
|
||||
$latestReleaseTagCommand = 'gh api repos/' . $repoName . '/releases --jq ".[0] | .tag_name" 2>/dev/null';
|
||||
$latestReleaseTag = trim(\shell_exec($latestReleaseTagCommand) ?? '');
|
||||
|
||||
if (!empty($existingCommitRelease)) {
|
||||
Console::warning("Latest commit on {$releaseTarget} already has a release ({$existingCommitRelease}) for {$language['name']} SDK, skipping to avoid empty release...");
|
||||
continue;
|
||||
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