x-actions/go-git-mirrors
Mirrors Code from github to gitee
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| src | Source name. Such as `github/xiexianbin`. | yes | — |
| src_token | The app token which is used to list repo in source hub, just support Github API token. | yes | — |
| dst | Destination name. Such as `gitee/xiexianbin`. | yes | — |
| dst_key | The private SSH key which is used to to push code in destination hub. | yes | — |
| dst_token | The app token which is used to create repo in destination hub, just support Gitee API token. | yes | — |
| account_type | The account type. Such as org, user. | no | user |
| src_account_type | The src account type. Such as org, user. | no | "" |
| dst_account_type | The dst account type. Such as org, user. | no | "" |
| clone_style | The git clone style, https or ssh. | no | ssh |
| cache_path | The path to cache the source repos code. | no | /github/workspace/git-mirrors-cache |
| black_list | Height priority, the back list of mirror repo. like 'repo1,repo2,repo3' | no | "" |
| white_list | Low priority, the white list of mirror repo. like 'repo1,repo2,repo3' | no | "" |
| force_update | Force to update the destination repo, use '-f' flag do 'git push' | no | false |
| debug | Enable the debug flag to show detail log | no | false |
| timeout | Set the timeout for every git command, eg. '600'=>600s, '30m'=>30 minute, '2h'=>2 hours | no | 30m |
| mappings | The source repos mappings, such as 'A=>B, C=>CC', source repo name would be mapped follow the rule: A to B, C to CC. Mapping is not transitive. | no | "" |
| ssh_keyscans | ssh-keyscan -t rsa/ecdsa host > ~/.ssh/known_hosts. | no | github.com,gitee.com |
Outputs
no outputs