File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 11name : Maven build
22
3- on : [ push, pull_request ]
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ types : [ opened, synchronize, reopened ]
48
59jobs :
610 build :
Original file line number Diff line number Diff line change 11name : SonarCloud code analysis
22
3- on : [push, pull_request]
3+ on :
4+ workflow_run :
5+ workflows : [ "Maven build" ]
6+ types : [ completed ]
47
58jobs :
69 analyze :
710 name : Analyze
8- if : github.repository == 'web-eid/web-eid-authtoken-validation-java'
11+ if : >
12+ github.repository == 'web-eid/web-eid-authtoken-validation-java' &&
13+ github.event.workflow_run.conclusion == 'success'
914 runs-on : ubuntu-latest
1015
1116 steps :
1217 - uses : actions/checkout@v4
1318 with :
19+ repository : ${{ github.event.workflow_run.head_repository.full_name }}
20+ ref : ${{ github.event.workflow_run.head_branch }}
1421 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
1522 - name : Set up JDK 17
1623 uses : actions/setup-java@v3
You can’t perform that action at this time.
0 commit comments