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
echo "Secret TOKEN_BUILD is set"
fi
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: token ${{ secrets.TOKEN_BUILD }}"
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 core.askPass ""
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
# Debug
ls -la app/frontend
@@ -98,9 +96,8 @@ jobs:
- name: Cleanup Git Config
if: always() # Pastikan tetap jalan meski job gagal
run: |
# git config --global --unset-all url."https://token:${{ secrets.TOKEN_BUILD }}@${{ 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
- name: Cleanup Git Config
if: always()
run: |
git config --global --unset-all http."https://git.datadunia.com/".extraheader
git config --global --unset core.askPass