Ignore deleted files when formatting codebase (#15274)
This commit is contained in:
parent
dbc7b53517
commit
155076889a
1 changed files with 4 additions and 3 deletions
7
.github/workflows/format.yaml
vendored
7
.github/workflows/format.yaml
vendored
|
@ -36,9 +36,10 @@ jobs:
|
||||||
- name: Run qmk formatters
|
- name: Run qmk formatters
|
||||||
shell: 'bash {0}'
|
shell: 'bash {0}'
|
||||||
run: |
|
run: |
|
||||||
qmk format-c --core-only $(< ~/files.txt)
|
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt
|
||||||
qmk format-python $(< ~/files.txt)
|
qmk format-c --core-only $(< ~/files_changed.txt)
|
||||||
qmk format-text $(< ~/files.txt)
|
qmk format-python $(< ~/files_changed.txt)
|
||||||
|
qmk format-text $(< ~/files_changed.txt)
|
||||||
|
|
||||||
- name: Fail when formatting required
|
- name: Fail when formatting required
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue