File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 19
19
fetch-depth : 0
20
20
ref : ${{ inputs.ref }}
21
21
22
+ - name : Fetch base branch
23
+ run : |
24
+ git remote add base https://github.com/commerce-docs/commerce-php.git
25
+ git fetch base ${{ github.event.pull_request.base.ref }}
26
+ git checkout ${{ inputs.ref }}
27
+
22
28
- name : Setup reviewdog
23
29
uses : reviewdog/action-setup@v1.3.0
24
30
with :
@@ -32,12 +38,14 @@ jobs:
32
38
uses : super-linter/super-linter/slim@v7.3.0
33
39
env :
34
40
GITHUB_TOKEN : ${{ github.token }}
41
+ LOG_LEVEL : DEBUG
42
+ ACTIONS_RUNNER_DEBUG : true
35
43
36
44
- name : Report linting results with reviewdog
37
45
shell : bash
38
46
run : |
39
47
TMPFILE=$(mktemp)
40
- git diff > "${TMPFILE}"
48
+ git diff base/${{ github.event.pull_request.base.ref }} > "${TMPFILE}"
41
49
if [ ! -s "${TMPFILE}" ]; then
42
50
echo "No changes detected, skipping reviewdog."
43
51
exit 0
You can’t perform that action at this time.
0 commit comments