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 e4ec318
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:
PRIVATE_KEY: ${{ secrets.SRHT_MIRROR_PRIVATE_KEY }}
GIT_SSH_COMMAND: "ssh -i id_ed25519 -o 'StrictHostKeyChecking no'"
run: |
echo "$PRIVATE_KEY" > id_ed25519
git remote add srht [email protected]:~beleap/nixos-configuration
git push --mirror srht

0 comments on commit e4ec318

Please sign in to comment.