fix: use printf for JSON body and Authorization header for Gitea API
Release / build-and-release (push) Failing after 59s
Release / build-and-release (push) Failing after 59s
This commit is contained in:
@@ -61,16 +61,13 @@ jobs:
|
||||
ENDJSON
|
||||
|
||||
- name: Create Release and upload assets
|
||||
env:
|
||||
# Ini cara paling aman agar variabel terbaca oleh shell
|
||||
MY_TOKEN: ${{ secrets.TOKEN_BUILD }}
|
||||
run: |
|
||||
TOKEN="$MY_TOKEN"
|
||||
if [ -z "$MY_TOKEN" ]; then
|
||||
TOKEN="${{ secrets.TOKEN_BUILD }}"
|
||||
if [ -z "$TOKEN" ]; then
|
||||
echo "❌ ERROR: Secret TOKEN_BUILD tidak terbaca oleh runner!"
|
||||
exit 1
|
||||
else
|
||||
echo "✅ Secret terbaca (panjang karakter: ${#MY_TOKEN})"
|
||||
echo "✅ Secret terbaca (panjang karakter: ${#TOKEN})"
|
||||
fi
|
||||
# Gunakan variabel bawaan Gitea Actions untuk keandalan
|
||||
REPO="${{ gitea.repository }}"
|
||||
|
||||
Reference in New Issue
Block a user