File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 4
4
pull_request_target :
5
5
branches :
6
6
- main
7
+ push :
8
+ branches :
9
+ - main
10
+ paths :
11
+ - ' gradle/libs.versions.toml'
12
+ workflow_dispatch :
7
13
8
14
jobs :
9
15
dump-unicode-data :
16
22
- name : ' Checkout Repository'
17
23
uses : actions/checkout@v4
18
24
with :
19
- repository : ${{ github.event.pull_request.head.repo.full_name }}
20
- ref : ${{ github.event.pull_request.head.sha }}
25
+ repository : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
26
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
21
27
- uses : actions/setup-java@v4
22
28
with :
23
29
distribution : temurin
@@ -43,13 +49,12 @@ jobs:
43
49
uses : gradle/actions/setup-gradle@v3
44
50
with :
45
51
gradle-version : wrapper
46
- - name : Install fossa cli
47
- run : " curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash"
48
- - name : Run FOSSA analyze
49
- run : fossa analyze --project json-schema-validator --branch ${{ github.event.pull_request.head.ref }}
50
- env :
51
- FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
52
- - name : Run FOSSA analyze
53
- run : fossa test --project json-schema-validator
54
- env :
55
- FOSSA_API_KEY : ${{secrets.FOSSA_API_KEY}}
52
+ - uses : fossas/fossa-action@v1
53
+ with :
54
+ api-key : ${{secrets.FOSSA_API_KEY}}
55
+ branch : ${{ github.event.pull_request.head.ref || github.ref_name }}
56
+ - uses : fossas/fossa-action@v1
57
+ if : github.event_name != 'push'
58
+ with :
59
+ api-key : ${{secrets.FOSSA_API_KEY}}
60
+ run-tests : true
You can’t perform that action at this time.
0 commit comments