yikun/Hub Mirror Action.
Mirror the organization repos between hub (github/gitee/gitLab).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| 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. | yes | — |
| src_token | The app token which is used to get repo list from source hub. | no | "" |
| dst | Destination name. Such as `gitee/kunpengcompute`. | yes | — |
| dst_endpoint | Destination endpoint for self-hosted, currently only Gitlab is supported, like gitlab.example.com (no https:// prefix). | — | "" |
| src | Source name. Such as `github/kunpengcompute`. | yes | — |
| src_endpoint | Source endpoint for self-hosted, currently only Gitlab is supported, like gitlab.example.com (no https:// prefix). | — | "" |
| account_type | The account type. Such as org, user, group. | — | user |
| src_account_type | The src account type. Such as org, user, group. | — | "" |
| dst_account_type | The dst account type. Such as org, user, group. | — | "" |
| clone_style | The git clone style, https or ssh. | — | https |
| cache_path | The path to cache the source repos code. Relative paths will be prefixed with `github.workspace`. | — | hub-mirror-cache |
| black_list | Hight priority, the back list of mirror repo. like 'repo1,repo2,repo3' | — | "" |
| white_list | Low priority, the white list of mirror repo. like 'repo1,repo2,repo3' | — | "" |
| static_list | Only mirror repo in the static list, but don't get from repo api (the white/black list is still available). like 'repo1,repo2,repo3' | — | "" |
| force_update | Force to update the destination repo, use '-f' flag do 'git push' | — | false |
| debug | Enable the debug flag to show detail log | — | false |
| timeout | Set the timeout for every git command, like '600'=>600s, '30m'=>30 mins, '1h'=>1 hours | — | 30m |
| api_timeout | Set the timeout for API requests (in seconds). | — | 60 |
| 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. | — | "" |
| lfs | Enable Git LFS support. | — | false |
Outputs
no outputs