mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 13:31:21 +03:00
use github actions syntax for environment variables
This commit is contained in:
parent
13dd64319a
commit
6684afd772
9
.github/workflows/clang-format.yml
vendored
9
.github/workflows/clang-format.yml
vendored
@ -19,11 +19,12 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- name: Formatter
|
- name: Formatter
|
||||||
run: |
|
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;
|
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
|
- name: test
|
||||||
run: git status
|
run: git status
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user