diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index ea2b8b1..d51d09b 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -25,6 +25,8 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.GITLAB_SSH_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa + # Ensure the known_hosts file exists + touch ~/.ssh/known_hosts ssh-keyscan gitlab.com >> ~/.ssh/known_hosts # Step 4: Push the code to GitLab