Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ jobs:
id: comment_file_check
run: |
FILE_PATH="pr.txt"
if [ -s "$FILE_PATH" ]; then
echo "===== pr.txt contents (debug) ====="
sed -n '1,200p' "$FILE_PATH" || true
echo "===== end debug ====="
# Consider the file empty if it has zero bytes OR only whitespace/newlines.
if [ -s "$FILE_PATH" ] && grep -q '[^[:space:]]' "$FILE_PATH"; then
echo "file_empty=false" >> $GITHUB_OUTPUT
else
echo "file_empty=true" >> $GITHUB_OUTPUT
Expand Down
Loading