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:
18
18
- any-glob-to-any-file :
19
19
- " **/*.java"
20
20
21
+ c :
22
+ - changed-files :
23
+ - any-glob-to-any-file :
24
+ - " **/*.c"
25
+
21
26
c++ :
22
27
- changed-files :
23
28
- any-glob-to-any-file :
24
29
- " **/*.cpp"
25
30
31
+ c#:
32
+ - changed-files :
33
+ - any-glob-to-any-file :
34
+ - " **/*.cs"
35
+
26
36
swift :
27
37
- changed-files :
28
38
- any-glob-to-any-file :
Original file line number Diff line number Diff line change 16
16
files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
17
17
success=true
18
18
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
20
20
echo "- $file" >> $GITHUB_STEP_SUMMARY
21
21
success=false
22
22
fi
You can’t perform that action at this time.
0 commit comments