From bd4631903cf5e8c451614ec04e7f6c0b74f517b1 Mon Sep 17 00:00:00 2001 From: Eshan Roy Date: Wed, 4 Dec 2024 13:35:16 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=AC=20test(=5Fmirror):=20=3D>=20gitlab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 2 ++ 1 file changed, 2 insertions(+) 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