fix: Action TOKEN
Release / build (amd64) (push) Failing after 5s
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:18:52 +07:00
parent d62936d607
commit fb198f64bb
+5 -9
View File
@@ -18,16 +18,12 @@ jobs:
steps:
- name: Clone repository with submodules
run: |
echo "Checking secrets.token..."
if [ -z "${{ secrets.TOKEN_BUILD }}" ]; then
echo "ERROR: Secret TOKEN_BUILD tidak ditemukan!"
exit 1
else
echo "Secret TOKEN_BUILD is set"
fi
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 --unset-all http.https://git.datadunia.com/.extraheader || true
MY_TOKEN="${{ secrets.TOKEN_BUILD }}"
git config --global http.https://git.datadunia.com/.extraheader "Authorization: token $MY_TOKEN"
git config --global core.askPass ""
git config --global credential.helper ""
# Kita tambahkan --shallow-submodules untuk mempercepat proses jika repo besar
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
# Debug
ls -la app/frontend