diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e26ce52..e45a6cc 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -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