mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
use old and new fnames
This commit is contained in:
parent
cbcebf30ec
commit
48bf52907f
3
.github/workflows/clang-format.yml
vendored
3
.github/workflows/clang-format.yml
vendored
@ -26,10 +26,11 @@ jobs:
|
||||
run: |
|
||||
for fname in $(find . -name '*.cpp' -o -name '*.h')
|
||||
do
|
||||
old_fname="${fname}"
|
||||
new_fname="$(echo -e "${fname}" | tr ' ' '_')"
|
||||
new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')"
|
||||
echo $new_fname
|
||||
git mv $fname $new_fname
|
||||
git mv $old_fname $new_fname
|
||||
done
|
||||
git commit -am "formatting filenames $GITHUB_SHA" || true
|
||||
- name: Clang Formatter
|
||||
|
Loading…
Reference in New Issue
Block a user