File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,21 @@ java:
1818 - any-glob-to-any-file :
1919 - " **/*.java"
2020
21+ c :
22+ - changed-files :
23+ - any-glob-to-any-file :
24+ - " **/*.c"
25+
2126c++ :
2227 - changed-files :
2328 - any-glob-to-any-file :
2429 - " **/*.cpp"
2530
31+ c#:
32+ - changed-files :
33+ - any-glob-to-any-file :
34+ - " **/*.cs"
35+
2636swift :
2737 - changed-files :
2838 - any-glob-to-any-file :
Original file line number Diff line number Diff line change 1616 files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
1717 success=true
1818 for file in $files; do
19- if [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then
19+ if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then
2020 echo "- $file" >> $GITHUB_STEP_SUMMARY
2121 success=false
2222 fi
You can’t perform that action at this time.
0 commit comments