Skip to content

Commit de5eabd

Browse files
committed
ci: ignore line lint check for empty files
1 parent 6dd8755 commit de5eabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
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

0 commit comments

Comments
 (0)