Skip to content

Commit 7f0251b

Browse files
authored
Merge pull request #1 from slangbot/format-6458-feature/blossom_infra
Format code for PR shader-slang#6458
2 parents 05315e4 + 83a6dd4 commit 7f0251b

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

.github/workflows/blossom-ci.yml

+28-29
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@ on:
33
issue_comment:
44
types: [created]
55
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
1313
jobs:
1414
Authorization:
1515
name: Authorization
16-
runs-on: blossom
16+
runs-on: blossom
1717
outputs:
1818
args: ${{ env.args }}
19-
19+
2020
# This job only runs for pull request comments
2121
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+
)
2929
steps:
3030
- name: Check if comment is issued by authorized person
3131
run: blossom-ci
3232
env:
33-
OPERATION: 'AUTH'
33+
OPERATION: "AUTH"
3434
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
REPO_KEY_DATA: ${{ secrets.BLOSSOM_KEY }}
36-
36+
3737
Vulnerability-scan:
3838
name: Vulnerability scan
3939
needs: [Authorization]
@@ -44,21 +44,21 @@ jobs:
4444
with:
4545
repository: ${{ fromJson(needs.Authorization.outputs.args).repo }}
4646
ref: ${{ fromJson(needs.Authorization.outputs.args).ref }}
47-
lfs: 'true'
48-
49-
# repo specific steps
47+
lfs: "true"
48+
49+
# repo specific steps
5050
#- name: Setup java
5151
# uses: actions/setup-java@v1
5252
# with:
5353
# java-version: 1.8
54-
54+
5555
# add blackduck properties https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/631308372/Methods+for+Configuring+Analysis#Using-a-configuration-file
5656
#- name: Setup blackduck properties
5757
# run: |
5858
# PROJECTS=$(mvn -am dependency:tree | grep maven-dependency-plugin | awk '{ out="com.nvidia:"$(NF-1);print out }' | grep rapids | xargs | sed -e 's/ /,/g')
5959
# echo detect.maven.build.command="-pl=$PROJECTS -am" >> application.properties
6060
# echo detect.maven.included.scopes=compile >> application.properties
61-
61+
6262
- name: Run blossom action
6363
uses: NVIDIA/blossom-action@main
6464
env:
@@ -68,7 +68,7 @@ jobs:
6868
args1: ${{ fromJson(needs.Authorization.outputs.args).args1 }}
6969
args2: ${{ fromJson(needs.Authorization.outputs.args).args2 }}
7070
args3: ${{ fromJson(needs.Authorization.outputs.args).args3 }}
71-
71+
7272
Job-trigger:
7373
name: Start ci job
7474
needs: [Vulnerability-scan]
@@ -77,19 +77,18 @@ jobs:
7777
- name: Start ci job
7878
run: blossom-ci
7979
env:
80-
OPERATION: 'START-CI-JOB'
80+
OPERATION: "START-CI-JOB"
8181
CI_SERVER: ${{ secrets.CI_SERVER }}
8282
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
83+
8484
Upload-Log:
8585
name: Upload log
8686
runs-on: blossom
87-
if : github.event_name == 'workflow_dispatch'
87+
if: github.event_name == 'workflow_dispatch'
8888
steps:
8989
- name: Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here)
9090
run: blossom-ci
9191
env:
92-
OPERATION: 'POST-PROCESSING'
92+
OPERATION: "POST-PROCESSING"
9393
CI_SERVER: ${{ secrets.CI_SERVER }}
9494
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95-

0 commit comments

Comments
 (0)