fix: use SSH for submodule auth
This commit is contained in:
@@ -21,9 +21,13 @@ jobs:
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Update submodules with auth
|
||||
- name: Setup SSH for submodules
|
||||
run: |
|
||||
git config http.extraHeader "Authorization: Bearer ${{ gitea.token }}"
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan git.datadunia.com >> ~/.ssh/known_hosts
|
||||
git config --global url."git@git.datadunia.com:".insteadOf "https://git.datadunia.com/"
|
||||
git submodule update --init --recursive
|
||||
ls -la app/ # Debug
|
||||
|
||||
@@ -66,9 +70,13 @@ jobs:
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Update submodules with auth
|
||||
- name: Setup SSH for submodules
|
||||
run: |
|
||||
git config http.extraHeader "Authorization: Bearer ${{ gitea.token }}"
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan git.datadunia.com >> ~/.ssh/known_hosts
|
||||
git config --global url."git@git.datadunia.com:".insteadOf "https://git.datadunia.com/"
|
||||
git submodule update --init --recursive
|
||||
ls -la app/ # Debug
|
||||
|
||||
|
||||
Reference in New Issue
Block a user