File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ jobs:
126
126
- name : Mark the workspace as safe
127
127
# https://github.com/actions/checkout/issues/766
128
128
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
129
- - name : Run format lint check
130
- run : swift format lint --strict --recursive --parallel .
131
- - name : Run format and check for modified files
132
- run : |
133
- swift format format --parallel --recursive --in-place .
134
- git diff-index --quiet HEAD
129
+ - name : Format Swift files
130
+ run : git ls-files -z '*. swift' | xargs -0 swift format format --parallel --in-place
131
+ - name : Lint Swift files
132
+ run : git ls-files -z '*.swift' | xargs -0 swift format lint --strict --parallel
133
+ - name : Check format produced no diff
134
+ run : GIT_PAGER= git diff --exit-code '*.swift'
You can’t perform that action at this time.
0 commit comments