Skip to content

Commit 8c3b594

Browse files
committed
feat: add mirroring workflow
1 parent 677f8df commit 8c3b594

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/mirror.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
mirror:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- env:
14+
PRIVATE_KEY: ${{ secrets.SRHT_MIRROR_PRIVATE_KEY }}
15+
GIT_SSH_COMMAND: "ssh -i id_ed25519 -o 'StrictHostKeyChecking no'"
16+
run: |
17+
echo "$PRIVATE_KEY" > id_ed25519
18+
chmod 400 id_ed25519
19+
git remote add srht [email protected]:~beleap/nixos-configuration
20+
git push --force --mirror srht

0 commit comments

Comments
 (0)