File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed
Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 1717
1818name : PR Quality Check
1919
20- on : [pull_request ]
20+ on : [pull_request_target ]
2121
2222jobs :
2323 build :
2929 ref : " refs/pull/${{ github.event.number }}/merge"
3030 fetch-depth : 0
3131
32+ - name : Changed UI Files
33+ id : ui-changes
34+ uses : tj-actions/changed-files@a59f800cbb60ed483623848e31be67659a2940f8
35+ with :
36+ sha : " ${{ github.pull_request.sha }}"
37+ base_sha : " ${{ github.sha }}"
38+ files : |
39+ ui/*
40+
41+ - name : Kick UI Build
42+ uses : peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32
43+ if : steps.ui-changes.outputs.any_changed == 'true'
44+ with :
45+ token : ${{ secrets.ACS_ROBOT_TOKEN }}
46+ issue-number : ${{ github.event.pull_request.number }}
47+ body : |
48+ Found UI changes, kicking a new UI QA build
49+ @blueorangutan ui
50+
51+ - name : Changed Java Files
52+ id : java-changes
53+ uses : tj-actions/changed-files@a59f800cbb60ed483623848e31be67659a2940f8
54+ with :
55+ sha : " ${{ github.pull_request.sha }}"
56+ base_sha : " ${{ github.sha }}"
57+ files : |
58+ **/*.java
59+ **/*.xml
60+
3261 - name : Set up JDK11
3362 uses : actions/setup-java@v3
63+ if : steps.java-changes.outputs.any_changed == 'true'
3464 with :
3565 distribution : ' temurin'
3666 java-version : ' 11'
5383
5484 - name : Run Build and Tests with Coverage
5585 id : coverage
86+ if : steps.java-changes.outputs.any_changed == 'true'
5687 env :
5788 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5889 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments