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
|
ENDJSON
|
||||||
|
|
||||||
- name: Create Release and upload assets
|
- name: Create Release and upload assets
|
||||||
env:
|
|
||||||
# Ini cara paling aman agar variabel terbaca oleh shell
|
|
||||||
MY_TOKEN: ${{ secrets.TOKEN_BUILD }}
|
|
||||||
run: |
|
run: |
|
||||||
TOKEN="$MY_TOKEN"
|
TOKEN="${{ secrets.TOKEN_BUILD }}"
|
||||||
if [ -z "$MY_TOKEN" ]; then
|
if [ -z "$TOKEN" ]; then
|
||||||
echo "❌ ERROR: Secret TOKEN_BUILD tidak terbaca oleh runner!"
|
echo "❌ ERROR: Secret TOKEN_BUILD tidak terbaca oleh runner!"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "✅ Secret terbaca (panjang karakter: ${#MY_TOKEN})"
|
echo "✅ Secret terbaca (panjang karakter: ${#TOKEN})"
|
||||||
fi
|
fi
|
||||||
# Gunakan variabel bawaan Gitea Actions untuk keandalan
|
# Gunakan variabel bawaan Gitea Actions untuk keandalan
|
||||||
REPO="${{ gitea.repository }}"
|
REPO="${{ gitea.repository }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user