File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Execute FOSSA analyze action
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ['Check the PR']
6
+ types : [completed]
7
+
8
+ jobs :
9
+ dump-unicode-data :
10
+ uses : ./.github/workflows/unicode-dump.yml
11
+ fossa-scan :
12
+ runs-on : ubuntu-latest
13
+ if : github.repository == 'OptimumCode/json-schema-validator' && github.event.workflow_run.conclusion == 'success'
14
+ needs :
15
+ - dump-unicode-data
16
+ steps :
17
+ - name : ' Checkout Repository'
18
+ uses : actions/checkout@v4
19
+ with :
20
+ repository : ${{ github.event.workflow_run.head_repository.full_name }}
21
+ ref : ${{ github.event.workflow_run.head_sha }}
22
+ - uses : actions/setup-java@v4
23
+ with :
24
+ distribution : temurin
25
+ java-version-file : .java-version
26
+ - name : Validate Gradle Wrapper
27
+ uses : gradle/actions/wrapper-validation@v3
28
+ - name : Cache konan
29
+ uses : actions/cache@v4
30
+ with :
31
+ path : ~/.konan
32
+ key : ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
33
+ restore-keys : |
34
+ ${{ runner.os }}-gradle-
35
+ - name : Cache unicode data
36
+ uses : actions/cache@v4
37
+ with :
38
+ fail-on-cache-miss : true
39
+ path : unicode_dump
40
+ key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
41
+ restore-keys : |
42
+ unicode-dump-
43
+ - name : Setup Gradle
44
+ uses : gradle/actions/setup-gradle@v3
45
+ with :
46
+ gradle-version : wrapper
47
+ - uses : fossas/fossa-action@v1
48
+ with :
49
+ api-key : ${{secrets.FOSSA_API_KEY}}
50
+ branch : ${{ github.event.workflow_run.head_branch }}
51
+ run-tests : true
You can’t perform that action at this time.
0 commit comments