diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7321c914..487b488d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 - name: Run clang-format - shell: /usr/bin/bash + shell: /usr/bin/bash {0} run: | diff=`git-clang-format --extensions="c,h,cc,cp,cpp,c++,cxx,hh,hpp,hxx,inc,cu,cuh" --commit ${{ github.event.pull_request.base.sha }} --diff` [ "$diff" = "no modified files to format" ] && exit 0