yikun/Hub Mirror Action.

Mirror the organization repos between hub (github/gitee/gitLab).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
dst_keyThe private SSH key which is used to to push code in destination hub.yes
dst_tokenThe app token which is used to create repo in destination hub.yes
src_tokenThe app token which is used to get repo list from source hub.no""
dstDestination name. Such as `gitee/kunpengcompute`.yes
dst_endpointDestination endpoint for self-hosted, currently only Gitlab is supported, like gitlab.example.com (no https:// prefix).""
srcSource name. Such as `github/kunpengcompute`.yes
src_endpointSource endpoint for self-hosted, currently only Gitlab is supported, like gitlab.example.com (no https:// prefix).""
account_typeThe account type. Such as org, user, group.user
src_account_typeThe src account type. Such as org, user, group.""
dst_account_typeThe dst account type. Such as org, user, group.""
clone_styleThe git clone style, https or ssh.https
cache_pathThe path to cache the source repos code. Relative paths will be prefixed with `github.workspace`.hub-mirror-cache
black_listHight priority, the back list of mirror repo. like 'repo1,repo2,repo3'""
white_listLow priority, the white list of mirror repo. like 'repo1,repo2,repo3'""
static_listOnly 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_updateForce to update the destination repo, use '-f' flag do 'git push'false
debugEnable the debug flag to show detail logfalse
timeoutSet the timeout for every git command, like '600'=>600s, '30m'=>30 mins, '1h'=>1 hours30m
api_timeoutSet the timeout for API requests (in seconds).60
mappingsThe 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.""
lfsEnable Git LFS support.false

no outputs