fix: shallow
This commit is contained in:
@@ -19,21 +19,12 @@ jobs:
|
|||||||
- name: Clone repository with submodules
|
- name: Clone repository with submodules
|
||||||
run: |
|
run: |
|
||||||
git clone --recurse-submodules -c "url.https://token:${{ gitea.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:${{ 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 ${{ gitea.token }}"
|
git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ gitea.token }}"
|
||||||
|
|
||||||
# 2. Matikan prompt interaktif agar tidak berhenti meminta password
|
|
||||||
git config --global core.askPass ""
|
git config --global core.askPass ""
|
||||||
|
|
||||||
# 3. Jalankan clone secara rekursif
|
|
||||||
# Sekarang proses submodule pasti akan membaca file ~/.gitconfig dan menemukan header tadi
|
|
||||||
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
|
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
|
||||||
|
|
||||||
# 4. PENTING: Hapus konfigurasi segera setelah selesai (Cleanup)
|
|
||||||
# Gunakan perintah ini di langkah 'if: always()' jika di Gitea Actions
|
|
||||||
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
|
||||||
git config --global --unset core.askPass
|
|
||||||
|
|
||||||
# Debug
|
# Debug
|
||||||
ls -la app/frontend
|
ls -la app/frontend
|
||||||
|
|
||||||
@@ -105,3 +96,5 @@ jobs:
|
|||||||
# 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
|
||||||
|
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
||||||
|
git config --global --unset core.askPass
|
||||||
Reference in New Issue
Block a user