From fb198f64bb0889932904d84d38c0055d06b54385 Mon Sep 17 00:00:00 2001 From: datadunia Date: Thu, 7 May 2026 14:18:52 +0700 Subject: [PATCH] fix: Action TOKEN --- .gitea/workflows/release.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 56dcf55..70a0800 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,16 +18,12 @@ jobs: steps: - name: Clone repository with submodules run: | - echo "Checking secrets.token..." - if [ -z "${{ secrets.TOKEN_BUILD }}" ]; then - echo "ERROR: Secret TOKEN_BUILD tidak ditemukan!" - exit 1 - else - echo "Secret TOKEN_BUILD is set" - fi - git config --global --unset-all http."https://git.datadunia.com/".extraheader || true - git config --global http."https://git.datadunia.com/".extraheader "Authorization: Bearer ${{ secrets.TOKEN_BUILD }}" + git config --global --unset-all http.https://git.datadunia.com/.extraheader || true + MY_TOKEN="${{ secrets.TOKEN_BUILD }}" + git config --global http.https://git.datadunia.com/.extraheader "Authorization: token $MY_TOKEN" git config --global core.askPass "" + git config --global credential.helper "" + # Kita tambahkan --shallow-submodules untuk mempercepat proses jika repo besar git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git . # Debug ls -la app/frontend