https://github.com/shashinma/git-repo-mirror
Git Repo Mirroring enables you to synchronize code to other code management platforms, such as GitLab, Gitee, etc.
https://github.com/shashinma/git-repo-mirror
devops git github github-actions mirror script shell
Last synced: over 1 year ago
JSON representation
Git Repo Mirroring enables you to synchronize code to other code management platforms, such as GitLab, Gitee, etc.
- Host: GitHub
- URL: https://github.com/shashinma/git-repo-mirror
- Owner: shashinma
- License: mit
- Created: 2023-09-27T23:49:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-28T00:55:16.000Z (over 2 years ago)
- Last Synced: 2025-03-17T09:04:35.217Z (over 1 year ago)
- Topics: devops, git, github, github-actions, mirror, script, shell
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Repository Mirroring
Git Repo Mirroring enables you to synchronize code to other code management platforms, such as GitLab, Gitee, etc.
## Try Git Repository Mirroring
You can use the following example as a template to create a new file with any name under `.github/workflows/`.
```yaml
name:
on:
- push
- delete
jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Mirroring
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: shashinma/git-repo-mirror
with:
# Such as https://github.com/shashinma/git-repo-mirror.git
target-url:
# Such as shashinma
target-username:
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
target-token:
```