diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 73c9156..4bc0f64 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -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 }}"