mirror test

This commit is contained in:
cnst
2024-10-27 19:18:17 +01:00
parent 0175049d38
commit 3d1a77baee
8 changed files with 63 additions and 86 deletions

23
.github/workflows/mirror.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
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 }}