Skip to content

🔬 test(_mirror): idk #4

🔬 test(_mirror): idk

🔬 test(_mirror): idk #4

Workflow file for this run

name: Push to GitLab
on:
push:
branches:
- master # Adjust the branch as needed
jobs:
sync-to-gitlab:
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 [email protected]
# Step 3: Set up SSH for GitLab access
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GITLAB_SSH_KEY }}" > ~/.ssh/id_rsa
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 [email protected]:Snigdha-OS/snigdhaos-applications/snigdhaos-kernel-switcher-dev.git
git push --mirror gitlab