File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,32 @@ name: "CI"
2
2
3
3
on :
4
4
pull_request_target :
5
+ types : [opened, synchronize, reopened]
5
6
push :
6
7
branches :
7
8
- ' v3'
8
9
- ' feature/*'
9
10
- ' fix/*'
10
11
workflow_dispatch :
11
12
13
+ permissions :
14
+ actions : read
15
+ checks : write
16
+ contents : read
17
+ deployments : read
18
+ issues : read
19
+ packages : read
20
+ pull-requests : write
21
+ repository-projects : read
22
+ security-events : read
23
+ statuses : write
24
+
12
25
env :
13
26
SAUCE_USERNAME : ${{secrets.SAUCE_USERNAME}}
14
27
SAUCE_ACCESS_KEY : ${{secrets.SAUCE_ACCESS_KEY}}
15
28
CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
16
29
DISPLAY : ' :99.0'
30
+
17
31
jobs :
18
32
approve :
19
33
runs-on : ubuntu-latest
@@ -31,15 +45,19 @@ jobs:
31
45
with :
32
46
ref : ${{ github.event.pull_request.head.sha }}
33
47
fetch-depth : 2
48
+ persist-credentials : false
34
49
35
50
- name : Is environment ok
36
51
run : |
37
52
echo $SAUCE_USERNAME
53
+ echo ${{ github.event.pull_request.base.sha }} ${{ github.sha }} ${{ github.event.pull_request.head.sha }}
38
54
39
55
- name : Get specific changed files
40
56
id : source-changed
41
57
uses :
tj-actions/[email protected]
42
58
with :
59
+ base_sha : ${{ github.sha }}
60
+ sha : ${{ github.event.pull_request.head.sha }}
43
61
files : |
44
62
src
45
63
test
You can’t perform that action at this time.
0 commit comments