diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index fa963a77..686e1a6b 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -18,13 +18,12 @@ jobs: with: submodules: true - name: Formatter - run: find -name '*.c' -o -name '*.h' | \ - xargs clang-format -i -style='$line1 $line2 $line3 $line4' + run: find -name '*.c' -o -name '*.h' | xargs clang-format -i -style="$line1 $line2 $line3 $line4" env: - - line1='{ BasedOnStyle: LLVM, UseTab: Never,' - - line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,' - - line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,' - - line4='ColumnLimit: 80, AccessModifierOffset: -4 }' + - line1="{ BasedOnStyle: LLVM, UseTab: Never," + - line2="IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman," + - line3="AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false," + - line4="ColumnLimit: 80, AccessModifierOffset: -4 }" - name: test run: git diff