From 18c9dc91faf5d257977c67431e02525ac8ef2cde Mon Sep 17 00:00:00 2001 From: Eshan Roy Date: Wed, 4 Dec 2024 13:33:20 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=AC=20test(=5Fmirror):=20idk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index ce13ac4..ea2b8b1 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -10,13 +10,16 @@ jobs: runs-on: ubuntu-latest steps: + # Step 1: Checkout the GitHub repository - name: Checkout Repository uses: actions/checkout@v3 - + + # Step 2: Test SSH connection to GitLab (Debugging) - name: Test SSH Connection run: | ssh -vT git@gitlab.com - + + # Step 3: Set up SSH for GitLab access - name: Set up SSH run: | mkdir -p ~/.ssh @@ -24,8 +27,8 @@ jobs: chmod 600 ~/.ssh/id_rsa ssh-keyscan gitlab.com >> ~/.ssh/known_hosts + # Step 4: Push the code to GitLab - name: Push to GitLab run: | git remote add gitlab git@gitlab.com:Snigdha-OS/snigdhaos-applications/snigdhaos-kernel-switcher-dev.git git push --mirror gitlab -