Skip to content

feat: add mirroring workflow #7

feat: add mirroring workflow

feat: add mirroring workflow #7

Workflow file for this run

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