Skip to content

Commit aa124ae

Browse files
committed
chore: add debug logging to super-linter
1 parent 15d8378 commit aa124ae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/lint-pr_job.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
fetch-depth: 0
2020
ref: ${{ inputs.ref }}
2121

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+
2228
- name: Setup reviewdog
2329
uses: reviewdog/action-setup@v1.3.0
2430
with:
@@ -32,12 +38,14 @@ jobs:
3238
uses: super-linter/super-linter/slim@v7.3.0
3339
env:
3440
GITHUB_TOKEN: ${{ github.token }}
41+
LOG_LEVEL: DEBUG
42+
ACTIONS_RUNNER_DEBUG: true
3543

3644
- name: Report linting results with reviewdog
3745
shell: bash
3846
run: |
3947
TMPFILE=$(mktemp)
40-
git diff > "${TMPFILE}"
48+
git diff base/${{ github.event.pull_request.base.ref }} > "${TMPFILE}"
4149
if [ ! -s "${TMPFILE}" ]; then
4250
echo "No changes detected, skipping reviewdog."
4351
exit 0

0 commit comments

Comments
 (0)