-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathaction.yml
227 lines (227 loc) · 4.16 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
name: Split Action
description: Listify input and set outputs with index
branding:
icon: scissors
color: blue
inputs:
msg:
required: true
description: String to split
separator:
required: false
default: ' '
description: The delimiter to split the string
maxsplit:
required: false
default: '-1'
description: Maximum number of splits
outputs:
length:
description: Length of the splits
_0:
description: 1st element
_1:
description: 2nd element
_2:
description: 3rd element
_3:
description: 4th element
_4:
description: 5th element
_5:
description: 6th element
_6:
description: 7th element
_7:
description: 8th element
_8:
description: 9th element
_9:
description: 10th element
_10:
description: 11st element
_11:
description: 12nd element
_12:
description: 13rd element
_13:
description: 14th element
_14:
description: 15th element
_15:
description: 16th element
_16:
description: 17th element
_17:
description: 18th element
_18:
description: 19th element
_19:
description: 20th element
_20:
description: 21st element
_21:
description: 22nd element
_22:
description: 23rd element
_23:
description: 24th element
_24:
description: 25th element
_25:
description: 26th element
_26:
description: 27th element
_27:
description: 28th element
_28:
description: 29th element
_29:
description: 30th element
_30:
description: 31st element
_31:
description: 32nd element
_32:
description: 33rd element
_33:
description: 34th element
_34:
description: 35th element
_35:
description: 36th element
_36:
description: 37th element
_37:
description: 38th element
_38:
description: 39th element
_39:
description: 40th element
_40:
description: 41st element
_41:
description: 42nd element
_42:
description: 43rd element
_43:
description: 44th element
_44:
description: 45th element
_45:
description: 46th element
_46:
description: 47th element
_47:
description: 48th element
_48:
description: 49th element
_49:
description: 50th element
_50:
description: 51st element
_51:
description: 52nd element
_52:
description: 53rd element
_53:
description: 54th element
_54:
description: 55th element
_55:
description: 56th element
_56:
description: 57th element
_57:
description: 58th element
_58:
description: 59th element
_59:
description: 60th element
_60:
description: 61st element
_61:
description: 62nd element
_62:
description: 63rd element
_63:
description: 64th element
_64:
description: 65th element
_65:
description: 66th element
_66:
description: 67th element
_67:
description: 68th element
_68:
description: 69th element
_69:
description: 70th element
_70:
description: 71st element
_71:
description: 72nd element
_72:
description: 73rd element
_73:
description: 74th element
_74:
description: 75th element
_75:
description: 76th element
_76:
description: 77th element
_77:
description: 78th element
_78:
description: 79th element
_79:
description: 80th element
_80:
description: 81st element
_81:
description: 82nd element
_82:
description: 83rd element
_83:
description: 84th element
_84:
description: 85th element
_85:
description: 86th element
_86:
description: 87th element
_87:
description: 88th element
_88:
description: 89th element
_89:
description: 90th element
_90:
description: 91st element
_91:
description: 92nd element
_92:
description: 93rd element
_93:
description: 94th element
_94:
description: 95th element
_95:
description: 96th element
_96:
description: 97th element
_97:
description: 98th element
_98:
description: 99th element
_99:
description: 100th element
runs:
using: docker
image: docker://winterjung/split:v2
args:
- ${{ inputs.msg }}
- ${{ inputs.separator }}
- ${{ inputs.maxsplit }}