File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 26
26
description : ' argument'
27
27
required : false
28
28
jobs :
29
+ Get-Authorization :
30
+ runs-on : blossom
31
+ outputs :
32
+ AUTHORIZED : ${{ steps.check-authorization.outputs.defined }}
33
+ steps :
34
+ - id : check-authorization
35
+ env :
36
+ AUTHORIZED_USERS : ${{ secrets.AUTHORIZED_USERS }}
37
+ if : |
38
+ contains( ${{ env.AUTHORIZED_USERS }}, format('{0},', github.actor)) &&
39
+ github.event.comment.body == '/nvidia-ci'
40
+ run : echo "::set-output name=defined::true"
41
+
29
42
Authorization :
43
+ needs : [Get-Authorization]
30
44
name : Authorization
31
45
runs-on : blossom
32
46
env :
35
49
args : ${{ env.args }}
36
50
37
51
# This job only runs for pull request comments
38
- if : |
39
- contains( ${{ env.AUTHORIZED_USERS }}, format('{0},', github.actor)) &&
40
- github.event.comment.body == '/nvidia-ci'
52
+ if : needs.Get-Authorization.outputs.check-authorization == 'true'
41
53
steps :
42
54
- name : Check if comment is issued by authorized person
43
55
run : blossom-ci
You can’t perform that action at this time.
0 commit comments