From 309a3fea8fd40cc08241652b45fcf91ebda3b46b Mon Sep 17 00:00:00 2001 From: datadunia Date: Thu, 7 May 2026 13:52:59 +0700 Subject: [PATCH] fix: Action TOKEN --- .gitea/workflows/release.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 64007b9..fc27c5d 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,12 +18,19 @@ jobs: steps: - name: Clone repository with submodules run: | - if [ -z "${{ secrets.MY_GITEA_TOKEN }}" ]; then - echo "ERROR: Secret MY_GITEA_TOKEN tidak ditemukan!" + echo "Checking gitea.token..." + if [ "${{ gitea.token }}" == "" ]; then + echo "gitea.token is EMPTY" + else + echo "gitea.token is SET" + fi + if [ -z "${{ secrets.TOKEN }}" ]; then + echo "ERROR: Secret TOKEN tidak ditemukan!" exit 1 fi - git clone --recurse-submodules -c "url.https://token:${{ secrets.MY_GITEA_TOKEN }}@git.datadunia.com/.insteadOf=https://git.datadunia.com/" https://git.datadunia.com/devops/wireguard-vpn.git - git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ secrets.MY_GITEA_TOKEN }}" + + 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 + git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ secrets.TOKEN }}" git config --global core.askPass "" git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .