Skip to content

Commit

Permalink
Ignore deleted files when formatting codebase (qmk#15274)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Nov 23, 2021
1 parent dbc7b53 commit 1550768
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
- name: Run qmk formatters
shell: 'bash {0}'
run: |
qmk format-c --core-only $(< ~/files.txt)
qmk format-python $(< ~/files.txt)
qmk format-text $(< ~/files.txt)
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt
qmk format-c --core-only $(< ~/files_changed.txt)
qmk format-python $(< ~/files_changed.txt)
qmk format-text $(< ~/files_changed.txt)
- name: Fail when formatting required
run: |
Expand Down

0 comments on commit 1550768

Please sign in to comment.