From 48bf52907fdc0c15af4fc92e8a61d6e46f804732 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 17:37:36 -0400 Subject: [PATCH] use old and new fnames --- .github/workflows/clang-format.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index bec69d481..f3940c5b6 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -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