File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -19,28 +19,33 @@ jobs:
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 :
25
31
reviewdog_version : v0.20.3
26
32
33
+ - name : Load super-linter configuration
34
+ shell : bash
35
+ run : cat .github/super-linter.env >> "$GITHUB_ENV"
36
+
27
37
- name : Lint Code Base with super-linter and reviewdog
28
38
uses : super-linter/super-linter/slim@v7.3.0
29
39
env :
30
40
GITHUB_TOKEN : ${{ github.token }}
31
- VALIDATE_MARKDOWN : true
32
- FIX_MARKDOWN : true
33
- MARKDOWN_CONFIG_FILE : .markdownlint.yml
34
- VALIDATE_ALL_CODEBASE : false
35
- IGNORE_GITIGNORED_FILES : true
36
41
LOG_LEVEL : DEBUG
37
42
ACTIONS_RUNNER_DEBUG : true
38
43
39
44
- name : Report linting results with reviewdog
40
45
shell : bash
41
46
run : |
42
47
TMPFILE=$(mktemp)
43
- git diff > "${TMPFILE}"
48
+ git diff base/${{ github.event.pull_request.base.ref }} > "${TMPFILE}"
44
49
if [ ! -s "${TMPFILE}" ]; then
45
50
echo "No changes detected, skipping reviewdog."
46
51
exit 0
You can’t perform that action at this time.
0 commit comments