fix: Action TOKEN
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user