We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867b32b commit b12f346Copy full SHA for b12f346
.github/workflows/build.yml
@@ -269,7 +269,11 @@ jobs:
269
id: comment_file_check
270
run: |
271
FILE_PATH="pr.txt"
272
- if [ -s "$FILE_PATH" ]; then
+ echo "===== pr.txt contents (debug) ====="
273
+ sed -n '1,200p' "$FILE_PATH" || true
274
+ echo "===== end debug ====="
275
+ # Consider the file empty if it has zero bytes OR only whitespace/newlines.
276
+ if [ -s "$FILE_PATH" ] && grep -q '[^[:space:]]' "$FILE_PATH"; then
277
echo "file_empty=false" >> $GITHUB_OUTPUT
278
else
279
echo "file_empty=true" >> $GITHUB_OUTPUT
0 commit comments