ci: use git URL rewrite with token for submodule auth
This commit is contained in:
@@ -10,10 +10,8 @@ jobs:
|
||||
run:
|
||||
working-directory: apps/docs
|
||||
steps:
|
||||
- name: Rewrite submodule URLs
|
||||
run: |
|
||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
||||
- name: Configure git auth for submodules
|
||||
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
Reference in New Issue
Block a user