Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 663 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 663 Bytes

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