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 27c68dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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"
run: |
echo "$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 27c68dd

Please sign in to comment.