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 17
17
18
18
name : PR Quality Check
19
19
20
- on : [pull_request ]
20
+ on : [pull_request_target ]
21
21
22
22
jobs :
23
23
build :
29
29
ref : " refs/pull/${{ github.event.number }}/merge"
30
30
fetch-depth : 0
31
31
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
+
32
61
- name : Set up JDK11
33
62
uses : actions/setup-java@v3
63
+ if : steps.java-changes.outputs.any_changed == 'true'
34
64
with :
35
65
distribution : ' temurin'
36
66
java-version : ' 11'
53
83
54
84
- name : Run Build and Tests with Coverage
55
85
id : coverage
86
+ if : steps.java-changes.outputs.any_changed == 'true'
56
87
env :
57
88
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
89
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments