generated from katorlys-samples/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
85 lines (85 loc) · 2.67 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
name: 'Github Mirror To Gitea'
description: 'Mirror your GitHub repositories to your Gitea server.'
author: 'Katorly'
branding:
icon: 'copy'
color: 'orange'
inputs:
GITHUB_USERNAME:
description: 'Your GitHub username'
required: true
GITHUB_PAT:
description: 'Your GitHub personal access token'
required: true
GITEA_HOST:
description: 'Your Gitea hostname, starts with `http://` or `https://`'
required: true
GITEA_USERNAME:
description: 'Your Gitea username'
required: true
GITEA_PAT:
description: 'Your Gitea personal access token'
required: true
CREATE_ORG:
description: 'Create a new organization in Gitea when the repository username is different from your GitHub username'
required: false
default: true
REMOVE_INEXIST_REPO:
description: 'Remove all repositories in Gitea owned by the user that do not exist in GitHub'
required: false
default: false
REMOVE_EXISTING_REPO:
description: 'Remove existing repositories in Gitea that have the same name as the repositories in GitHub'
required: false
default: false
MIRROR_OWNED:
description: 'Mirror the repositories you own'
required: false
default: true
MIRROR_PRIVATE:
description: 'Mirror private repositories you own'
required: false
default: true
MIRROR_FORKED:
description: 'Mirror the repositories you forked'
required: false
default: true
MIRROR_STARRED:
description: 'Mirror the repositories you starred'
required: false
default: false
MIRROR_COLLABORATOR:
description: 'Mirror the repositories that you have collaborator access'
required: false
default: false
MIRROR_ORGANIZATION:
description: 'Mirror the repositories in organizations that you are a member'
required: false
default: false
MODE:
description: '`whitelist` or `blacklist` to only mirror or skip repositories that match the regex'
required: false
default: 'blacklist'
REGEX:
description: 'Regex list'
required: false
default: 'EpicGames/.*,NVIDIAGameWorks/.*'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.GITHUB_USERNAME }}
- ${{ inputs.GITHUB_PAT }}
- ${{ inputs.GITEA_HOST }}
- ${{ inputs.GITEA_USERNAME }}
- ${{ inputs.GITEA_PAT }}
- ${{ inputs.CREATE_ORG }}
- ${{ inputs.REMOVE_INEXIST_REPO }}
- ${{ inputs.REMOVE_EXISTING_REPO }}
- ${{ inputs.MIRROR_OWNED }}
- ${{ inputs.MIRROR_FORKED }}
- ${{ inputs.MIRROR_STARRED }}
- ${{ inputs.MIRROR_COLLABORATOR }}
- ${{ inputs.MIRROR_ORGANIZATION }}
- ${{ inputs.MODE }}
- ${{ inputs.REGEX }}