-
Notifications
You must be signed in to change notification settings - Fork 25
/
action.yml
123 lines (98 loc) · 4.51 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: "Copybara Action 2"
description: "Transform and move code between repositories. Start with ZERO config and 100% customizable."
author: "Romain Barissat"
inputs:
ssh_key:
description: "SSH public key."
required: true
access_token:
description: "Personal access token with `repo` permissions. Always required on *destination*. Required on *SoT* only if the variable `sot_branch` below is left empty and to decide between **push** and **init** workflows."
required: false
sot_repo:
description: "Source repository (Source of Truth)."
required: false
sot_branch:
description: "SoT branch. Defaults to your repository's default branch."
required: false
default: ""
destination_repo:
description: "Destination repository."
required: false
destination_branch:
description: "Destination branch. Defaults to the same as your SoT's branch name."
required: false
default: ""
push_include:
description: "Files to include when pushing from SoT => Destination (space separated globs). Defaults to all files."
required: false
default: "**"
push_exclude:
description: "Files to exclude when pushing from SoT => Destination (space separated globs). Defaults to none."
required: false
default: ""
push_move:
description: "Files to move before pushing from SoT => Destination. In the format `from||to||match` where `match` is a glob filter to match only specific files within `from` (defaults to all). Separate each move operation by a line return. Defaults to reverse of `pr_move`. `push_move` is always run before `push_replace`."
required: false
default: ""
push_replace:
description: "Files to replace before pushing from SoT => Destination. In the format `search||replace||match` where `match` is a glob filter to search only those files (defaults to all). Separate each replace operation by a line return. Defaults to reverse of `pr_replace`. `push_replace` is always run after `push_move`."
required: false
default: ""
pr_include:
description: "Files to include when pulling from Destination => SoT (space separated globs). Defaults to all files."
required: false
default: "**"
pr_exclude:
description: "Files to exclude when pulling from Destination => SoT (space separated globs). Defaults to none."
required: false
default: ""
pr_move:
description: "Files to move before pushing from Destination => SoT. In the format `from||to||match` where `match` is a glob filter to match only specific files within `from` (defaults to all). Separate each move operation by a line return. Defaults to none. `pr_move` is always run after `pr_replace`."
required: false
default: ""
pr_replace:
description: "Files to replace before pushing from Destination => SoT. In the format `search||replace||match` where `match` is a glob filter to search only those files (defaults to all). Separate each replace operation by a line return. Defaults to none. `pr_replace` is always run before `pr_move`."
required: false
default: ""
committer:
description: "Who will commit changes (author will be original committer)."
required: false
default: Github Actions <[email protected]>
custom_config:
description: "Copybara custom configuration file to use. Using this will ignore all the pr_* and push_* inputs."
required: false
default: ""
workflow:
description: "Workflow to execute. Defaults to auto-detect (init / push / pr)."
required: false
default: ""
copybara_options:
description: "Use this, if you want to manually specify some command line options (space-separated)."
required: false
default: ""
ssh_known_hosts:
description: "SSH known hosts file contents, for authenticating with Copybara with another Git server. GitHub is always included by default."
required: false
default: ""
copybara_image:
description: "Copybara Docker image to run."
required: false
default: "olivr/copybara"
copybara_image_tag:
description: "Copybara Docker image tag to use."
required: false
default: "latest"
pr_number:
description: "If you manually specified the 'pr' workflow, you will need to specify the PR number as well."
required: false
default: ""
create_repo:
description: "If the destination repo doesn't exist, it will be created (subject to enough permissions attached to the access token)."
required: false
default: "yes"
runs:
using: "node12"
main: "dist/index.js"
branding:
icon: "copy"
color: "purple"