Skip to content

Commit

Permalink
[ci]: Setting Up Mirror to GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
milosbackonja committed Feb 6, 2025
1 parent 7ae9bad commit cd289cf
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: Mirror Repository

on:
push:
branches: [ main ]

permissions:
contents: read

jobs:
mirror:
name: Mirror Repository to GitLab
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GIT_SSH_PRIVATE_KEY }}
name: id_rsa
known_hosts: ${{ secrets.GIT_SSH_KNOWN_HOSTS }}
- name: Mirror current ref to GitLab
run: |
git remote add gitlab ssh://[email protected]/IrreducibleOSS/binius.git
git push gitlab ${{ github.ref }}

0 comments on commit cd289cf

Please sign in to comment.