diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 494ea966..55966f35 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -19,11 +19,12 @@ jobs: submodules: true - name: Formatter run: | - export line1='{ BasedOnStyle: LLVM, UseTab: Never,' - export line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,' - export line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,' - export line4='ColumnLimit: 80, AccessModifierOffset: -4 }' for fname in $(find . -name '*.c' -o -name '*.h'); do clang-format -i --style='$line1 $line2 $line3 $line4' '$fname'; done; + env: + 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 status