mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-21 21:11:57 +03:00
remove echo, added github commit of formatted files
This commit is contained in:
parent
93254e1e22
commit
9c9744d1d3
12
.github/workflows/clang-format.yml
vendored
12
.github/workflows/clang-format.yml
vendored
@ -21,7 +21,6 @@ jobs:
|
||||
run: |
|
||||
for fname in $(find . -name '*.c' -o -name '*.h')
|
||||
do
|
||||
echo "$fname"
|
||||
clang-format --verbose -i --style="$line1 $line2 $line3 $line4" "$fname"
|
||||
done
|
||||
env:
|
||||
@ -29,7 +28,12 @@ jobs:
|
||||
line2: "IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,"
|
||||
line3: "AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,"
|
||||
line4: "ColumnLimit: 80, AccessModifierOffset: -4 }"
|
||||
- name: test
|
||||
if: always()
|
||||
run: git status
|
||||
- name: Commit files
|
||||
run: |
|
||||
cp -rp ./build/html/* . && rm -rf ./build && ls -lah
|
||||
git config --global user.name github-actions
|
||||
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||
git commit -am "formatting source-code for $GITHUB_SHA" || true
|
||||
git push
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user