An action for git repository mirroring
Run Mirroring a repository commands in github action.
git clone --bare https://github.com/exampleuser/old-repository.git
cd old-repository
git push --mirror https://github.com/exampleuser/new-repository.git
- uses: zcong1993/actions-git-mirror@master
with:
dest-repo: https://gitee.com/owner/some-dest-repo.git
dest-token: ${{ secrets.DEST_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
MIT © zcong1993