Skip to content

Commit

Permalink
πŸš€ feat(_mirror): => gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
eshanized committed Dec 4, 2024
1 parent a263037 commit cedd343
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Push to GitLab

on:
push:
branches:
- main # Adjust the branch as needed

jobs:
sync-to-gitlab:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- 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
- 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

0 comments on commit cedd343

Please sign in to comment.