24
24
- uses : actions/checkout@v4
25
25
- uses : ./.github/actions/dump-context
26
26
label :
27
+ if : github.event.comment.user.login != 'vdaas-ci'
27
28
name : Add labels
28
29
runs-on : ubuntu-latest
29
- if : github.event.comment.user.login != 'vdaas-ci'
30
+ container :
31
+ image : ghcr.io/vdaas/vald/vald-ci-container:nightly
30
32
steps :
31
33
- name : Check PR Comments
32
34
id : check_comments_label
35
37
TRIGGER_PHRASE : " /label"
36
38
env :
37
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
- - uses : ./.github/actions/setup-yq
39
- if : steps.check_comments_label.outputs.BOOL_TRIGGERED == 'true'
40
40
- name : Check permissions
41
41
if : steps.check_comments_label.outputs.BOOL_TRIGGERED == 'true'
42
42
id : check_permissions
74
74
USERNAME : ${{ steps.check_comments_label.outputs.COMMENTER_USERNAME }}
75
75
TRAILING_LINE : ${{ steps.check_comments_label.outputs.TRAILING_LINE }}
76
76
rebase :
77
+ if : github.event.comment.user.login != 'vdaas-ci'
77
78
name : Rebase
78
79
runs-on : ubuntu-latest
79
- if : github.event.comment.user.login != 'vdaas-ci'
80
+ container :
81
+ image : ghcr.io/vdaas/vald/vald-ci-container:nightly
80
82
steps :
81
83
- name : Check PR Comments
82
84
id : check_comments_rebase
85
87
TRIGGER_PHRASE : " /rebase"
86
88
env :
87
89
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88
- - uses : ./.github/actions/setup-yq
89
- if : steps.check_comments_rebase.outputs.BOOL_TRIGGERED == 'true'
90
90
- name : Check permissions
91
91
if : steps.check_comments_rebase.outputs.BOOL_TRIGGERED == 'true'
92
92
id : check_permissions
@@ -149,11 +149,13 @@ jobs:
149
149
GITHUB_TOKEN : ${{ secrets.DISPATCH_TOKEN }}
150
150
API_URL : ${{ github.event.issue.comments_url }}
151
151
gentest :
152
+ if : github.event.comment.user.login != 'vdaas-ci'
152
153
name : Add tests
153
154
needs :
154
155
- rebase
155
156
runs-on : ubuntu-latest
156
- if : github.event.comment.user.login != 'vdaas-ci'
157
+ container :
158
+ image : ghcr.io/vdaas/vald/vald-ci-container:nightly
157
159
steps :
158
160
- name : check PR Comments
159
161
id : check_comments_gen_test
@@ -162,8 +164,6 @@ jobs:
162
164
TRIGGER_PHRASE : " /gen-test"
163
165
env :
164
166
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
165
- - uses : ./.github/actions/setup-yq
166
- if : steps.check_comments_gen_test.outputs.BOOL_TRIGGERED == 'true'
167
167
- name : check permissions
168
168
if : steps.check_comments_gen_test.outputs.BOOL_TRIGGERED == 'true'
169
169
id : check_permissions
@@ -212,8 +212,6 @@ jobs:
212
212
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
213
213
git_user_signingkey : true
214
214
git_commit_gpgsign : true
215
- - uses : ./.github/actions/setup-go
216
- if : steps.check_comments_gen_test.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
217
215
- name : Generate tests and push
218
216
id : gen_test
219
217
if : steps.check_comments_gen_test.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
@@ -263,12 +261,14 @@ jobs:
263
261
GITHUB_TOKEN : ${{ secrets.DISPATCH_TOKEN }}
264
262
API_URL : ${{ github.event.issue.comments_url }}
265
263
format :
264
+ if : github.event.comment.user.login != 'vdaas-ci'
266
265
name : Add license and run golines + gofumpt + goimports
267
266
needs :
268
267
- rebase
269
268
- gentest
270
269
runs-on : ubuntu-latest
271
- if : github.event.comment.user.login != 'vdaas-ci'
270
+ container :
271
+ image : ghcr.io/vdaas/vald/vald-ci-container:nightly
272
272
steps :
273
273
- name : check PR Comments
274
274
id : check_comments_format
@@ -277,8 +277,6 @@ jobs:
277
277
TRIGGER_PHRASE : " /format"
278
278
env :
279
279
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
280
- - uses : ./.github/actions/setup-yq
281
- if : steps.check_comments_format.outputs.BOOL_TRIGGERED == 'true'
282
280
- name : check permissions
283
281
if : steps.check_comments_format.outputs.BOOL_TRIGGERED == 'true'
284
282
id : check_permissions
@@ -327,8 +325,6 @@ jobs:
327
325
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
328
326
git_user_signingkey : true
329
327
git_commit_gpgsign : true
330
- - uses : ./.github/actions/setup-go
331
- if : steps.check_comments_format.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
332
328
- name : update and push
333
329
id : format_push
334
330
if : steps.check_comments_format.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
@@ -397,12 +393,14 @@ jobs:
397
393
GITHUB_TOKEN : ${{ secrets.DISPATCH_TOKEN }}
398
394
API_URL : ${{ github.event.issue.comments_url }}
399
395
approve :
396
+ if : github.event.comment.user.login != 'vdaas-ci'
400
397
name : Approve
401
398
needs :
402
399
- rebase
403
400
- format
404
401
runs-on : ubuntu-latest
405
- if : github.event.comment.user.login != 'vdaas-ci'
402
+ container :
403
+ image : ghcr.io/vdaas/vald/vald-ci-container:nightly
406
404
steps :
407
405
- name : check PR Comments
408
406
id : check_comments_approve
@@ -411,8 +409,6 @@ jobs:
411
409
TRIGGER_PHRASE : " /approve"
412
410
env :
413
411
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
414
- - uses : ./.github/actions/setup-yq
415
- if : steps.check_comments_approve.outputs.BOOL_TRIGGERED == 'true'
416
412
- name : check permissions
417
413
if : steps.check_comments_approve.outputs.BOOL_TRIGGERED == 'true'
418
414
id : check_permissions
0 commit comments