diff options
| author | Joel Challis <git@zvecr.com> | 2021-11-23 00:49:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-23 00:49:18 +0000 |
| commit | 155076889a610b991ff3214d66f4828780c834cf (patch) | |
| tree | 905ecd7739785269ebe2b0ab3edcb691dbd29e4f /.github/workflows | |
| parent | dbc7b535178020063f80aaaabac3ca8ff9f6e8bb (diff) | |
| download | qmk_firmware-155076889a610b991ff3214d66f4828780c834cf.tar.gz qmk_firmware-155076889a610b991ff3214d66f4828780c834cf.zip | |
Ignore deleted files when formatting codebase (#15274)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/format.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 2a309e0af..4d9711d73 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml | |||
| @@ -36,9 +36,10 @@ jobs: | |||
| 36 | - name: Run qmk formatters | 36 | - name: Run qmk formatters |
| 37 | shell: 'bash {0}' | 37 | shell: 'bash {0}' |
| 38 | run: | | 38 | run: | |
| 39 | qmk format-c --core-only $(< ~/files.txt) | 39 | cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt |
| 40 | qmk format-python $(< ~/files.txt) | 40 | qmk format-c --core-only $(< ~/files_changed.txt) |
| 41 | qmk format-text $(< ~/files.txt) | 41 | qmk format-python $(< ~/files_changed.txt) |
| 42 | qmk format-text $(< ~/files_changed.txt) | ||
| 42 | 43 | ||
| 43 | - name: Fail when formatting required | 44 | - name: Fail when formatting required |
| 44 | run: | | 45 | run: | |
