fix: Action TOKEN
Release / build (amd64) (push) Failing after 6s
Release / build (arm64) (push) Failing after 6s
Release / generate-latest-json (push) Has been skipped

This commit is contained in:
datadunia
2026-05-07 14:02:45 +07:00
parent 309a3fea8f
commit 139463855d
+4 -7
View File
@@ -18,15 +18,12 @@ jobs:
steps: steps:
- name: Clone repository with submodules - name: Clone repository with submodules
run: | run: |
echo "Checking gitea.token..." echo "Checking secrets.token..."
if [ "${{ gitea.token }}" == "" ]; then
echo "gitea.token is EMPTY"
else
echo "gitea.token is SET"
fi
if [ -z "${{ secrets.TOKEN }}" ]; then if [ -z "${{ secrets.TOKEN }}" ]; then
echo "ERROR: Secret TOKEN tidak ditemukan!" echo "ERROR: Secret TOKEN tidak ditemukan!"
exit 1 exit 1
else
echo "Secret TOKEN is set"
fi 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 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 - name: Cleanup Git Config
if: always() # Pastikan tetap jalan meski job gagal if: always() # Pastikan tetap jalan meski job gagal
run: | 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 # Hapus header dan config agar tidak tersimpan di ~/.gitconfig host
git config --global --unset http.extraheader git config --global --unset http.extraheader
git config --global --unset core.askPass git config --global --unset core.askPass