Skip to content

zcong1993/actions-git-mirror

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

actions git mirror

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

Usage

- 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 }}

License

MIT © zcong1993