fix(ci): use GitHub API instead of Gitea API for release tracking
Gitea.com API returned 404. Switched to GitHub's public API: https://api.github.com/repos/go-gitea/gitea/releases/latest No auth needed for public repo; 60 req/h is ample for daily cron. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
9075a5694e
commit
6bcc7d791f
1 file changed
+2
-2
@@ -26,8 +26,8 @@ jobs:
|
|||||||
if [ -n "${{ github.event.inputs.version }}" ]; then
|
if [ -n "${{ github.event.inputs.version }}" ]; then
|
||||||
NEW_VERSION="${{ github.event.inputs.version }}"
|
NEW_VERSION="${{ github.event.inputs.version }}"
|
||||||
else
|
else
|
||||||
# Fetch latest release from Gitea API
|
# Fetch latest release from GitHub API (go-gitea/gitea mirror)
|
||||||
RELEASE_JSON=$(curl -sSf https://gitea.com/api/v1/repos/gitea/gitea/releases/latest)
|
RELEASE_JSON=$(curl -sSf https://api.github.com/repos/go-gitea/gitea/releases/latest)
|
||||||
NEW_VERSION=$(echo "$RELEASE_JSON" | jq -r '.tag_name')
|
NEW_VERSION=$(echo "$RELEASE_JSON" | jq -r '.tag_name')
|
||||||
fi
|
fi
|
||||||
# Strip 'v' prefix if present (API returns v1.27.0, we use 1.27.0)
|
# Strip 'v' prefix if present (API returns v1.27.0, we use 1.27.0)
|
||||||
|
|||||||
Reference in new issue
Block a user