fix: Action TOKEN
This commit is contained in:
@@ -18,16 +18,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone repository with submodules
|
- name: Clone repository with submodules
|
||||||
run: |
|
run: |
|
||||||
echo "Checking secrets.token..."
|
git config --global --unset-all http.https://git.datadunia.com/.extraheader || true
|
||||||
if [ -z "${{ secrets.TOKEN_BUILD }}" ]; then
|
MY_TOKEN="${{ secrets.TOKEN_BUILD }}"
|
||||||
echo "ERROR: Secret TOKEN_BUILD tidak ditemukan!"
|
git config --global http.https://git.datadunia.com/.extraheader "Authorization: token $MY_TOKEN"
|
||||||
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 core.askPass ""
|
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 .
|
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
|
||||||
# Debug
|
# Debug
|
||||||
ls -la app/frontend
|
ls -la app/frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user