fix: Action TOKEN
This commit is contained in:
@@ -25,12 +25,10 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Secret TOKEN_BUILD is set"
|
echo "Secret TOKEN_BUILD is set"
|
||||||
fi
|
fi
|
||||||
|
git config --global --unset-all http."https://git.datadunia.com/".extraheader || true
|
||||||
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: Bearer ${{ secrets.TOKEN_BUILD }}"
|
||||||
git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ secrets.TOKEN_BUILD }}"
|
|
||||||
git config --global core.askPass ""
|
git config --global core.askPass ""
|
||||||
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
|
||||||
|
|
||||||
@@ -98,9 +96,8 @@ jobs:
|
|||||||
- name: Cleanup Git Config
|
- name: Cleanup Git Config
|
||||||
if: always() # Pastikan tetap jalan meski job gagal
|
if: always() # Pastikan tetap jalan meski job gagal
|
||||||
run: |
|
run: |
|
||||||
# git config --global --unset-all url."https://token:${{ secrets.TOKEN_BUILD }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf
|
- name: Cleanup Git Config
|
||||||
# Hapus header dan config agar tidak tersimpan di ~/.gitconfig host
|
if: always()
|
||||||
git config --global --unset http.extraheader
|
run: |
|
||||||
git config --global --unset core.askPass
|
|
||||||
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
||||||
git config --global --unset core.askPass
|
git config --global --unset core.askPass
|
||||||
Reference in New Issue
Block a user