From 139463855d85a09c049b7fac58ed3c11bbe2e62c Mon Sep 17 00:00:00 2001 From: datadunia Date: Thu, 7 May 2026 14:02:45 +0700 Subject: [PATCH] fix: Action TOKEN --- .gitea/workflows/release.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index fc27c5d..ac54386 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,15 +18,12 @@ jobs: steps: - name: Clone repository with submodules run: | - echo "Checking gitea.token..." - if [ "${{ gitea.token }}" == "" ]; then - echo "gitea.token is EMPTY" - else - echo "gitea.token is SET" - fi + echo "Checking secrets.token..." if [ -z "${{ secrets.TOKEN }}" ]; then echo "ERROR: Secret TOKEN tidak ditemukan!" exit 1 + else + echo "Secret TOKEN is set" fi git clone --recurse-submodules -c "url.https://token:${{ secrets.TOKEN }}@git.datadunia.com/.insteadOf=https://git.datadunia.com/" https://git.datadunia.com/devops/wireguard-vpn.git @@ -101,7 +98,7 @@ jobs: - name: Cleanup Git Config if: always() # Pastikan tetap jalan meski job gagal run: | - # git config --global --unset-all url."https://token:${{ gitea.token }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf + # git config --global --unset-all url."https://token:${{ secrets.TOKEN }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf # Hapus header dan config agar tidak tersimpan di ~/.gitconfig host git config --global --unset http.extraheader git config --global --unset core.askPass