CI automated format fixes (#11179)
* Format all C files for now, till diff logic works within CI * Fix recursion of dos2unix
This commit is contained in:
parent
b185816717
commit
1ebd243cdc
4
.github/workflows/format.yaml
vendored
4
.github/workflows/format.yaml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: qmkfm/base_container
|
container: qmkfm/base_container
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Format files
|
- name: Format files
|
||||||
run: |
|
run: |
|
||||||
bin/qmk cformat
|
bin/qmk cformat -a
|
||||||
bin/qmk pyformat
|
bin/qmk pyformat
|
||||||
bin/qmk fileformat
|
bin/qmk fileformat
|
||||||
|
|
||||||
|
@ -9,5 +9,5 @@ import subprocess
|
|||||||
def fileformat(cli):
|
def fileformat(cli):
|
||||||
"""Run several general formatting commands.
|
"""Run several general formatting commands.
|
||||||
"""
|
"""
|
||||||
dos2unix = subprocess.run(['bash', '-c', 'dos2unix **'])
|
dos2unix = subprocess.run(['bash', '-c', 'git ls-files -z | xargs -0 dos2unix'])
|
||||||
return dos2unix.returncode
|
return dos2unix.returncode
|
||||||
|
Loading…
Reference in New Issue
Block a user