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

This commit is contained in:
datadunia
2026-05-07 14:16:54 +07:00
parent 3b0f478d3a
commit d62936d607
+5 -8
View File
@@ -25,12 +25,10 @@ jobs:
else else
echo "Secret TOKEN_BUILD is set" echo "Secret TOKEN_BUILD is set"
fi fi
git config --global --unset-all http."https://git.datadunia.com/".extraheader || true
git clone --recurse-submodules -c "url.https://token:${{ secrets.TOKEN_BUILD }}@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: Bearer ${{ secrets.TOKEN_BUILD }}"
git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ secrets.TOKEN_BUILD }}"
git config --global core.askPass "" git config --global core.askPass ""
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git . git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
# Debug # Debug
ls -la app/frontend ls -la app/frontend
@@ -98,9 +96,8 @@ 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:${{ secrets.TOKEN_BUILD }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf - name: Cleanup Git Config
# Hapus header dan config agar tidak tersimpan di ~/.gitconfig host if: always()
git config --global --unset http.extraheader run: |
git config --global --unset core.askPass
git config --global --unset-all http."https://git.datadunia.com/".extraheader git config --global --unset-all http."https://git.datadunia.com/".extraheader
git config --global --unset core.askPass git config --global --unset core.askPass