mirror of
https://github.com/rehlds/.github.git
synced 2025-07-22 05:06:19 +03:00
fix bare sync
This commit is contained in:
parent
1267272fa3
commit
ae9c8be613
22
.github/workflows/sync-with-mirrors.yml
vendored
22
.github/workflows/sync-with-mirrors.yml
vendored
@ -45,24 +45,24 @@ jobs:
|
|||||||
ssh-keyscan -t rsa,ed25519 github.com >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa,ed25519 github.com >> ~/.ssh/known_hosts
|
||||||
ssh-keyscan -t rsa,ed25519 gitlab.com >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa,ed25519 gitlab.com >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Clone repository as mirror
|
- name: Clone repository as bare
|
||||||
run: |
|
run: |
|
||||||
git clone --mirror ${{ matrix.repo.github }} repo-mirror
|
git clone --bare ${{ matrix.repo.github }} repo-bare
|
||||||
|
|
||||||
- name: Push to BitBucket
|
- name: Push to BitBucket
|
||||||
run: |
|
run: |
|
||||||
cd repo-mirror
|
cd repo-bare
|
||||||
git remote set-url origin ${{ matrix.repo.bitbucket }}
|
git remote add bb ${{ matrix.repo.bitbucket }}
|
||||||
git push --mirror --force
|
git push bb --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*
|
||||||
|
|
||||||
- name: Push to CodeBerg
|
- name: Push to CodeBerg
|
||||||
run: |
|
run: |
|
||||||
cd repo-mirror
|
cd repo-bare
|
||||||
git remote set-url origin ${{ matrix.repo.codeberg }}
|
git remote add cb ${{ matrix.repo.codeberg }}
|
||||||
git push --mirror --force
|
git push cb --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*
|
||||||
|
|
||||||
- name: Push to GitLab
|
- name: Push to GitLab
|
||||||
run: |
|
run: |
|
||||||
cd repo-mirror
|
cd repo-bare
|
||||||
git remote set-url origin ${{ matrix.repo.gitlab }}
|
git remote add gl ${{ matrix.repo.gitlab }}
|
||||||
git push --mirror --force
|
git push gl --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user