From 0cfaa50805da2d903f97229b7ca311da3bc89aee Mon Sep 17 00:00:00 2001 From: Karol Labus Date: Thu, 17 Sep 2026 21:17:44 +0200 Subject: [PATCH] fix: update manifest on master branch via Gitea API --- .gitea/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 69b0afa..67d6d3d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -131,18 +131,18 @@ jobs: B64_CONTENT=$(base64 -w0 manifest.json) - # Update on manifest branch - EXISTING_MANIFEST=$(curl -s -H "Authorization: token $TOKEN" "$API_URL/repos/$REPO/contents/manifest.json?ref=manifest") + # Update on master branch + EXISTING_MANIFEST=$(curl -s -H "Authorization: token $TOKEN" "$API_URL/repos/$REPO/contents/manifest.json?ref=master") FILE_SHA=$(echo "$EXISTING_MANIFEST" | grep -o '"sha":"[^"]*"' | head -1 | cut -d'"' -f4) if [ -n "$FILE_SHA" ]; then curl -s -X PUT "$API_URL/repos/$REPO/contents/manifest.json" \ -H "Authorization: token $TOKEN" \ -H "Content-Type: application/json" \ - -d "{\"content\":\"$B64_CONTENT\", \"message\":\"Update manifest.json for ${{ github.ref_name }}\", \"sha\":\"$FILE_SHA\", \"branch\":\"manifest\"}" + -d "{\"content\":\"$B64_CONTENT\", \"message\":\"Update manifest.json for ${{ github.ref_name }}\", \"sha\":\"$FILE_SHA\", \"branch\":\"master\"}" else curl -s -X PUT "$API_URL/repos/$REPO/contents/manifest.json" \ -H "Authorization: token $TOKEN" \ -H "Content-Type: application/json" \ - -d "{\"content\":\"$B64_CONTENT\", \"message\":\"Create manifest.json for ${{ github.ref_name }}\", \"branch\":\"manifest\"}" + -d "{\"content\":\"$B64_CONTENT\", \"message\":\"Create manifest.json for ${{ github.ref_name }}\", \"branch\":\"master\"}" fi