Skip to content

Commit 9f55b27

Browse files
authored
Fix typos workflow to check only changed PR files
1 parent 3684184 commit 9f55b27

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/typos.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ jobs:
2222
- name: Check out code
2323
uses: actions/checkout@v5
2424
with:
25+
fetch-depth: 0
2526
persist-credentials: false
2627

28+
- name: Get changed files
29+
id: changed-files
30+
if: github.event_name == 'pull_request'
31+
uses: jitterbit/get-changed-files@v1
32+
2733
- name: Use custom config file
2834
uses: crate-ci/[email protected]
2935
with:
36+
files: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.added_modified || '.' }}
3037
config: .github/_typos.toml
3138
write_changes: false

0 commit comments

Comments
 (0)