-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ae9bad
commit cd289cf
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |