3
3
issue_comment :
4
4
types : [created]
5
5
workflow_dispatch :
6
- inputs :
7
- platform :
8
- description : ' runs-on argument'
9
- required : false
10
- args :
11
- description : ' argument'
12
- required : false
6
+ inputs :
7
+ platform :
8
+ description : " runs-on argument"
9
+ required : false
10
+ args :
11
+ description : " argument"
12
+ required : false
13
13
jobs :
14
14
Authorization :
15
15
name : Authorization
16
- runs-on : blossom
16
+ runs-on : blossom
17
17
outputs :
18
18
args : ${{ env.args }}
19
-
19
+
20
20
# This job only runs for pull request comments
21
21
if : |
22
- github.event.comment.body == '/build' &&
23
- (
24
- github.actor == 'aasgaonkar' ||
25
- github.actor == 'csyonghe' ||
26
- github.actor == 'jkwak-work' ||
27
- github.actor == 'kaizhangNV'
28
- )
22
+ github.event.comment.body == '/build' &&
23
+ (
24
+ github.actor == 'aasgaonkar' ||
25
+ github.actor == 'csyonghe' ||
26
+ github.actor == 'jkwak-work' ||
27
+ github.actor == 'kaizhangNV'
28
+ )
29
29
steps :
30
30
- name : Check if comment is issued by authorized person
31
31
run : blossom-ci
32
32
env :
33
- OPERATION : ' AUTH'
33
+ OPERATION : " AUTH"
34
34
REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
35
REPO_KEY_DATA : ${{ secrets.BLOSSOM_KEY }}
36
-
36
+
37
37
Vulnerability-scan :
38
38
name : Vulnerability scan
39
39
needs : [Authorization]
@@ -44,21 +44,21 @@ jobs:
44
44
with :
45
45
repository : ${{ fromJson(needs.Authorization.outputs.args).repo }}
46
46
ref : ${{ fromJson(needs.Authorization.outputs.args).ref }}
47
- lfs : ' true'
48
-
49
- # repo specific steps
47
+ lfs : " true"
48
+
49
+ # repo specific steps
50
50
# - name: Setup java
51
51
# uses: actions/setup-java@v1
52
52
# with:
53
53
# java-version: 1.8
54
-
54
+
55
55
# add blackduck properties https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/631308372/Methods+for+Configuring+Analysis#Using-a-configuration-file
56
56
# - name: Setup blackduck properties
57
57
# run: |
58
58
# PROJECTS=$(mvn -am dependency:tree | grep maven-dependency-plugin | awk '{ out="com.nvidia:"$(NF-1);print out }' | grep rapids | xargs | sed -e 's/ /,/g')
59
59
# echo detect.maven.build.command="-pl=$PROJECTS -am" >> application.properties
60
60
# echo detect.maven.included.scopes=compile >> application.properties
61
-
61
+
62
62
- name : Run blossom action
63
63
uses : NVIDIA/blossom-action@main
64
64
env :
68
68
args1 : ${{ fromJson(needs.Authorization.outputs.args).args1 }}
69
69
args2 : ${{ fromJson(needs.Authorization.outputs.args).args2 }}
70
70
args3 : ${{ fromJson(needs.Authorization.outputs.args).args3 }}
71
-
71
+
72
72
Job-trigger :
73
73
name : Start ci job
74
74
needs : [Vulnerability-scan]
@@ -77,19 +77,18 @@ jobs:
77
77
- name : Start ci job
78
78
run : blossom-ci
79
79
env :
80
- OPERATION : ' START-CI-JOB'
80
+ OPERATION : " START-CI-JOB"
81
81
CI_SERVER : ${{ secrets.CI_SERVER }}
82
82
REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
-
83
+
84
84
Upload-Log :
85
85
name : Upload log
86
86
runs-on : blossom
87
- if : github.event_name == 'workflow_dispatch'
87
+ if : github.event_name == 'workflow_dispatch'
88
88
steps :
89
89
- name : Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here)
90
90
run : blossom-ci
91
91
env :
92
- OPERATION : ' POST-PROCESSING'
92
+ OPERATION : " POST-PROCESSING"
93
93
CI_SERVER : ${{ secrets.CI_SERVER }}
94
94
REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
95
-
0 commit comments