An open API service indexing awesome lists of open source software.

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.

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:
```