fix: use SSH for submodule auth

This commit is contained in:
datadunia
2026-05-06 17:52:25 +07:00
parent 4c00af7c44
commit c49964d4d4
+12 -4
View File
@@ -21,9 +21,13 @@ jobs:
with: with:
submodules: false submodules: false
- name: Update submodules with auth - name: Setup SSH for submodules
run: | 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 git submodule update --init --recursive
ls -la app/ # Debug ls -la app/ # Debug
@@ -66,9 +70,13 @@ jobs:
with: with:
submodules: false submodules: false
- name: Update submodules with auth - name: Setup SSH for submodules
run: | 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 git submodule update --init --recursive
ls -la app/ # Debug ls -la app/ # Debug