Skip to content

Commit 68f2bc5

Browse files
authored
Update code-formatting.yml (AliceO2Group#4919)
1 parent 0b14c71 commit 68f2bc5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/code-formatting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
BASE_COMMIT=$(git merge-base HEAD ${{ github.event.pull_request.base.sha }})
3838
echo "Running clang-format-8 against branch ${{ github.event.pull_request.base.ref }} , with hash ${{ github.event.pull_request.base.sha }}"
3939
COMMIT_FILES=$(git diff --name-only $BASE_COMMIT | grep -ivE 'LinkDef|Utilities/PCG/')
40+
[ "X$COMMIT_FILES" = X ] && { echo "No files to check" ; exit 0; }
4041
RESULT_OUTPUT="$(git-clang-format-8 --commit $BASE_COMMIT --diff --binary `which clang-format-8` $COMMIT_FILES)"
4142
4243
for x in $COMMIT_FILES; do

0 commit comments

Comments
 (0)