forked from k8scat/action-mirror-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
108 lines (107 loc) · 3.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Creating a Docker container action https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action
# Metadata syntax for GitHub Actions https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: "Mirror Git"
branding:
icon: "copy"
color: "green"
author: "K8sCat <[email protected]>"
description: "Synchronize git repositories like a mirror."
inputs:
source_protocol:
description: "https or ssh"
require: true
default: "https"
source_host:
description: "Git server host without the protocol"
required: true
default: "github.com"
source_port:
description: "Git server port"
required: false
source_username:
description: "Username on source git server"
required: true
source_private_key:
description: "SSH private key"
required: false
source_token:
description: "Personal access token"
required: false
source_token_username:
description: "Username who owned the token"
required: false
source_repo_name:
description: "Repo to mirror from"
required: true
dest_protocol:
description: "https or ssh"
require: true
default: "https"
dest_host:
description: "Git server host without the protocol"
required: true
default: "github.com"
dest_port:
description: "Git server port"
required: false
dest_username:
description: "Username on dest git server"
required: true
dest_private_key:
description: "SSH private key"
required: false
dest_token:
description: "Personal access token"
required: false
dest_token_username:
description: "Username who owned the token"
required: false
dest_create_repo_script:
description: "Script used to create repo on dest git server"
required: false
dest_repo_name:
description: "Repo to mirror towards"
required: true
push_tags:
description: "Push tags, true or false"
required: false
default: "true"
push_branch_only:
description: "Push specific branch only, instead of entire repository"
required: false
default: "false"
push_branch_name:
description: "Name of branch to push (depends on push_branch_only)"
required: false
default: "main"
skip_tags_repos:
description: "Skip pushing tags for these repos, surrounded by comma"
required: false
ignored_repos:
description: "Ignore these repos, surrounded by comma"
required: false
slack_webhook:
description: "Slack webhook url"
required: false
dingtalk_webhook:
description: "DingTalk webhook url"
required: false
lark_webhook:
description: "Lark webhook url"
required: false
notify_prefix:
description: "Prefix for notify message"
required: false
default: "Mirror Git"
notify_suffix:
description: "Suffix for notify message"
required: false
default: "Powered by https://github.com/k8scat/action-mirror-git"
ignore_error:
description: "Ignore error, true or false"
required: false
default: "false"
runs:
using: "docker"
image: 'Dockerfile'
#image: "docker://github.com/CynicalSloths/action-mirror-git@main"