Files
cnix/.github/workflows/mirror.yml
2024-10-27 19:18:17 +01:00

24 lines
509 B
YAML

name: Mirror repository
on:
push:
branches:
- main
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Mirror to SourceHut
run: |
git remote set-url --add --push origin git@git.sr.ht:~canasta/cnix
git remote set-url --push origin --mirror=push
git push --mirror
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}