mirror of
https://github.com/Snigdha-OS/snigdhaos-kernel-switcher-dev.git
synced 2025-09-20 20:24:57 +02:00
🔬 test(_mirror): idk
This commit is contained in:
9
.github/workflows/mirror.yml
vendored
9
.github/workflows/mirror.yml
vendored
@@ -10,13 +10,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Step 1: Checkout the GitHub repository
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Step 2: Test SSH connection to GitLab (Debugging)
|
||||||
- name: Test SSH Connection
|
- name: Test SSH Connection
|
||||||
run: |
|
run: |
|
||||||
ssh -vT git@gitlab.com
|
ssh -vT git@gitlab.com
|
||||||
|
|
||||||
|
# Step 3: Set up SSH for GitLab access
|
||||||
- name: Set up SSH
|
- name: Set up SSH
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@@ -24,8 +27,8 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
# Step 4: Push the code to GitLab
|
||||||
- name: Push to GitLab
|
- name: Push to GitLab
|
||||||
run: |
|
run: |
|
||||||
git remote add gitlab git@gitlab.com:Snigdha-OS/snigdhaos-applications/snigdhaos-kernel-switcher-dev.git
|
git remote add gitlab git@gitlab.com:Snigdha-OS/snigdhaos-applications/snigdhaos-kernel-switcher-dev.git
|
||||||
git push --mirror gitlab
|
git push --mirror gitlab
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user