Skip to content

Commit 12559ab

Browse files
committed
chore: update reviewdog.yml for improved PR source handling
1 parent cf89029 commit 12559ab

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/reviewdog.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
checks: write
1919
steps:
2020
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
21-
with:
22-
ref: ${{ github.event.pull_request.head.sha }}
2321

2422
- name: Install pnpm
2523
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
@@ -34,7 +32,20 @@ jobs:
3432
cache: 'pnpm'
3533

3634
- name: Install dependencies
37-
run: pnpm install --frozen-lockfile
35+
run: pnpm install --frozen-lockfile --ignore-scripts
36+
37+
- name: Checkout PR source files
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
39+
with:
40+
ref: ${{ github.event.pull_request.head.sha }}
41+
sparse-checkout: src
42+
path: __pr_src
43+
44+
- name: Overlay PR source
45+
run: |
46+
rm -rf src
47+
cp -r __pr_src/src src
48+
rm -rf __pr_src
3849
3950
- uses: reviewdog/action-eslint@556a3fdaf8b4201d4d74d406013386aa4f7dab96
4051
with:

0 commit comments

Comments
 (0)