Skip to content

Commit

Permalink
CI automated format fixes (qmk#11179)
Browse files Browse the repository at this point in the history
* Format all C files for now, till diff logic works within CI

* Fix recursion of dos2unix
  • Loading branch information
zvecr authored Dec 11, 2020
1 parent b185816 commit 1ebd243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
generate:
format:
runs-on: ubuntu-latest
container: qmkfm/base_container

Expand All @@ -22,7 +22,7 @@ jobs:
- name: Format files
run: |
bin/qmk cformat
bin/qmk cformat -a
bin/qmk pyformat
bin/qmk fileformat
Expand Down
2 changes: 1 addition & 1 deletion lib/python/qmk/cli/fileformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
def fileformat(cli):
"""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

0 comments on commit 1ebd243

Please sign in to comment.