fix: use printf for JSON body and Authorization header for Gitea API
Release / build-and-release (push) Failing after 53s

This commit is contained in:
datadunia
2026-05-08 04:19:51 +07:00
parent c42683e968
commit ba7b9ac64c
+6
View File
@@ -66,6 +66,12 @@ jobs:
MY_TOKEN: ${{ secrets.TOKEN_BUILD }} MY_TOKEN: ${{ secrets.TOKEN_BUILD }}
run: | run: |
TOKEN="$MY_TOKEN" TOKEN="$MY_TOKEN"
if [ -z "$MY_TOKEN" ]; then
echo "❌ ERROR: Secret TOKEN_BUILD tidak terbaca oleh runner!"
exit 1
else
echo "✅ Secret terbaca (panjang karakter: ${#MY_TOKEN})"
fi
# Gunakan variabel bawaan Gitea Actions untuk keandalan # Gunakan variabel bawaan Gitea Actions untuk keandalan
REPO="${{ gitea.repository }}" REPO="${{ gitea.repository }}"
TAG="${{ gitea.ref_name }}" TAG="${{ gitea.ref_name }}"