Skip to content

Commit 2e59110

Browse files
committed
ci: use GIT_SSH_COMMAND for submodule checkout
1 parent 22ab475 commit 2e59110

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
4141
- name: Instalacion de Dart Sass
4242
run: sudo snap install dart-sass
43-
- name: Debug SSH Key
44-
run: echo "Secret is ${{ secrets.ACTIONS_DEPLOY_KEY && 'Set' || 'Not Set' }}"
4543
- name: Setup SSH Key
4644
env:
4745
SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
@@ -50,19 +48,14 @@ jobs:
5048
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
5149
chmod 600 ~/.ssh/id_ed25519
5250
ssh-keyscan github.com >> ~/.ssh/known_hosts
53-
- name: Test SSH Connection
54-
run: ssh -T git@github.com
5551
- name: Checkout
5652
uses: actions/checkout@v4
5753
with:
5854
fetch-depth: 0
5955
persist-credentials: false
60-
- name: Force SSH and Debug Git Config
61-
run: |
62-
git config --global url."git@github.com:".insteadOf "https://github.com/"
63-
echo "--- Global Git Config ---"
64-
git config --list --global
6556
- name: Checkout Submodules
57+
env:
58+
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_ed25519 -o IdentitiesOnly=yes"
6659
run: git submodule update --init --recursive
6760
- name: Configurando Github Pages
6861
id: pages

0 commit comments

Comments
 (0)