Skip to content

Commit

Permalink
feat: add mirroring workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BeLeap committed Feb 6, 2024
1 parent 677f8df commit db66698
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
branches:
- main

jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- env:
GIT_SSH_COMMAND: "ssh -i id_ed25519"
run: |
printf '${{ secrets.SRHT_MIRROR_PRIVATE_KEY }}' > id_ed25519
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git remote add srht [email protected]:~beleap/nixos-configuration
git push --mirror srht

0 comments on commit db66698

Please sign in to comment.