Skip to content

Commit

Permalink
chore: add mirrors sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Ádran Farias Carnavale committed May 14, 2024
1 parent 281cc7c commit 684731e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/repo_mirror_sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push, delete]
jobs:
push:
runs-on: ubuntu-latest
if: github.repository == 'crnvl96/crkbd_config'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync remote repositories
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GIT_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# Ignore hosts keys, since we accept them as-is
git config --global core.sshCommand 'ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
# Codeberg
git remote add codeberg [email protected]:crnvl96/crkbd_config.git
git push --tags --force --prune codeberg 'refs/remotes/origin/*:refs/heads/*'
# Gitlab
git remote add gitlab [email protected]:crnvl96/crkbd_config.git
git push --tags --force --prune gitlab 'refs/remotes/origin/*:refs/heads/*'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
##### Official Mirrors can be found at
- https://codeberg.org/crnvl96/crkbd_config
- https://gitlab.com/crnvl96/crkbd_config

0 comments on commit 684731e

Please sign in to comment.