mirror test 2

This commit is contained in:
cnst
2024-10-27 19:26:21 +01:00
parent 3d1a77baee
commit 4eb2e6c210
2 changed files with 7 additions and 4 deletions

View File

@@ -10,14 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- 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 }}