forked from bitrise-steplib/steps-git-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep.yml
158 lines (156 loc) · 4.92 KB
/
step.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
title: "Git Clone Repository"
summary: Clone a repository to the specified path on the VM
description: |
Clones a repository based on the provided inputs.
If `pull_request_id` is provided then all other git checkout parameters will be ignored.
If a git commit is provided it will ignore the tag and branch parameters.
If no git commit but a tag is provided then it will ignore the branch parameter.
If no `branch` parameter is provided then it'll skip `git checkout`.
website: https://github.com/bitrise-io/steps-git-clone
source_code_url: https://github.com/bitrise-io/steps-git-clone
support_url: https://github.com/bitrise-io/steps-git-clone/issues
host_os_tags:
- osx-10.10
type_tags:
- utility
is_requires_admin_user: false
is_always_run: false
is_skippable: false
run_if: .IsCI
deps:
brew:
- name: go
apt_get:
- name: golang
bin_name: go
toolkit:
go:
package_name: github.com/bitrise-io/steps-git-clone
inputs:
- repository_url: "$GIT_REPOSITORY_URL"
opts:
title: "Git repository URL"
is_required: true
is_dont_change_value: true
- clone_into_dir: "$BITRISE_SOURCE_DIR"
opts:
title: "Clone destination (local) directory path"
is_required: true
- commit: "$BITRISE_GIT_COMMIT"
opts:
category: Clone Config
title: "Git Commit to clone"
is_dont_change_value: true
- tag: "$BITRISE_GIT_TAG"
opts:
category: Clone Config
title: "Git Tag to clone"
is_dont_change_value: true
- branch: "$BITRISE_GIT_BRANCH"
opts:
category: Clone Config
title: "Git Branch to clone"
is_dont_change_value: true
- branch_dest: "$BITRISEIO_GIT_BRANCH_DEST"
opts:
category: Clone Config
title: "Destination git Branch. Used for pull requests"
is_dont_change_value: true
- pull_request_id: "$PULL_REQUEST_ID"
opts:
category: Clone Config
title: "Pull request ID on GitHub"
is_dont_change_value: true
- pull_request_repository_url: "$BITRISEIO_PULL_REQUEST_REPOSITORY_URL"
opts:
category: Clone Config
title: "Pull request git URL"
is_dont_change_value: true
- pull_request_merge_branch: "$BITRISEIO_PULL_REQUEST_MERGE_BRANCH"
opts:
category: Clone Config
title: "Merged pull request branch"
is_dont_change_value: true
- reset_repository: "No"
opts:
category: Debug
summary: Reset repository contents with git reset --hard HEAD and git clean -f after repository updated
title: Reset repository
value_options:
- "No"
- "Yes"
- clone_depth:
opts:
category: Debug
title: "Limit fetching to the specified number of commits"
description: |-
Limit fetching to the specified number of commits.
The value should be a decimal number, example: `10`.
- build_url: "$BITRISE_BUILD_URL"
opts:
category: Debug
title: "Bitrise Build URL"
summary: |-
Unique build URL of this build on Bitrise.io
description: |-
Unique build URL of this build on Bitrise.io
is_dont_change_value: true
- build_api_token: "$BITRISE_BUILD_API_TOKEN"
opts:
category: Debug
title: Bitrise Build API Token
summary: |-
The build's API Token for the build on Bitrise.io
description: |-
The build's API Token for the build on Bitrise.io
is_dont_change_value: true
- update_submodules: "yes"
opts:
category: Debug
title: Update the registered submodules?
summary: |-
Update the registered submodules?
description: |-
Update the registered submodules?
value_options:
- "yes"
- "no"
- manual_merge: "yes"
opts:
category: Clone Config
title: Manual merge
summary: Prefer to do a manual `git merge` by default.
description: |-
Prefer to do a manual `git merge` by default.
When the PR is from a private repository, set this to `"no"`.
value_options:
- "yes"
- "no"
outputs:
- GIT_CLONE_COMMIT_HASH:
opts:
title: "Cloned git commit's commit hash"
- GIT_CLONE_COMMIT_MESSAGE_SUBJECT:
opts:
title: "Cloned git commit's message subject"
- GIT_CLONE_COMMIT_MESSAGE_BODY:
opts:
title: "Cloned git commit's message body"
- GIT_CLONE_COMMIT_COUNT:
opts:
title: "Cloned git commit counts"
description: |-
Count will only work properly if no `--depth` option is set.
If `--depth` is set then the history truncated to the specified number of commits. Count will **not** fail but will be the clone depth.
- GIT_CLONE_COMMIT_AUTHOR_NAME:
opts:
title: "Cloned git commit's author name"
- GIT_CLONE_COMMIT_AUTHOR_EMAIL:
opts:
title: "Cloned git commit's author email address"
- GIT_CLONE_COMMIT_COMMITER_NAME:
opts:
title: "Cloned git commit's committer name"
- GIT_CLONE_COMMIT_COMMITER_EMAIL:
opts:
title: "Cloned git commit's committer email"