Commit 29d9ae5 1 parent d423397 commit 29d9ae5 Copy full SHA for 29d9ae5
File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 14
14
uses :
webfactory/[email protected]
15
15
with :
16
16
ssh-private-key : ${{ secrets.GH_DEPLOY_KEY }}
17
- - name : Checkout
17
+ - name : Checkout the PR branch
18
18
uses : actions/checkout@v3
19
-
19
+ with :
20
+ ref : ${{ github.head_ref }}
21
+ - name : Checkout the base branch
22
+ uses : actions/checkout@v3
23
+ with :
24
+ ref : ${{ github.event.pull_request.base.ref }}
25
+ path : base
20
26
- name : Set up PHP
21
27
uses : shivammathur/setup-php@v2
22
28
with :
30
36
- name : Find WXR and XML files added in PR
31
37
id : find_files
32
38
run : |
33
- FILES=$(git diff --diff-filter=A --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -E '\.(wxr|xml)$')
39
+ FILES=$(git diff --diff-filter=A --name-only HEAD base/ ${{ github.event.pull_request.base.ref }} | grep -E '\.(wxr|xml)$')
34
40
if [ -z "$FILES" ]; then
35
41
echo "No newly added WXR or XML files to check."
36
42
exit 0
You can’t perform that action at this time.
0 commit comments