Skip to content

Commit f7629df

Browse files
authored
Fetch pull request commits for spellcheck (#10380)
Provide the event base and head objects required by the incremental diff.
1 parent 47c164c commit f7629df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/spellcheck.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
with:
2424
ref: ${{ inputs.ref }}
2525

26+
- name: Fetch pull request diff commits
27+
if: github.event_name == 'pull_request'
28+
run: git fetch --no-tags --depth=1 origin ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
29+
2630
- name: Fetch config file and dictionaries
2731
run:
2832
curl --silent --show-error --parallel --remote-name-all

0 commit comments

Comments
 (0)