mirror test 2
This commit is contained in:
9
.github/workflows/mirror.yml
vendored
9
.github/workflows/mirror.yml
vendored
@@ -10,14 +10,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Mirror to SourceHut
|
||||||
run: |
|
run: |
|
||||||
git remote set-url --add --push origin git@git.sr.ht:~canasta/cnix
|
git remote set-url --add --push origin git@git.sr.ht:~canasta/cnix
|
||||||
git remote set-url --push origin --mirror=push
|
git remote set-url --push origin --mirror=push
|
||||||
git push --mirror
|
git push --mirror
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user