Skip to content

Commit c33fb2d

Browse files
committed
ci: Fix EOF parsing
Signed-off-by: Chaitanya Tata <[email protected]>
1 parent e3c2ff8 commit c33fb2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/module-monitor.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
6262
# Parse YAML and generate comparison table
6363
echo "DEBUG: Starting Python script..." >&2
64-
python3 << 'EOF'
64+
python3 << 'PYTHON_SCRIPT_EOF'
6565
import yaml
6666
import sys
6767
import os
@@ -262,16 +262,16 @@ jobs:
262262
263263
print(f"DEBUG: Successfully wrote diff_output.txt", file=sys.stderr)
264264
265-
print("diff_output<<DIFF_EOF", file=sys.stdout)
265+
print("diff_output<<MODULE_MONITOR_DELIMITER", file=sys.stdout)
266266
print('\n'.join(diff_content), file=sys.stdout)
267-
print("DIFF_EOF", file=sys.stdout)
267+
print("MODULE_MONITOR_DELIMITER", file=sys.stdout)
268268
269269
except Exception as e:
270-
print("diff_output<<DIFF_EOF", file=sys.stdout)
270+
print("diff_output<<MODULE_MONITOR_DELIMITER", file=sys.stdout)
271271
print(f"Error generating comparison: {e}", file=sys.stdout)
272-
print("DIFF_EOF", file=sys.stdout)
272+
print("MODULE_MONITOR_DELIMITER", file=sys.stdout)
273273
print("DEBUG: Python script completed successfully", file=sys.stderr)
274-
EOF
274+
PYTHON_SCRIPT_EOF
275275
276276
- name: Set output variables
277277
id: set-output
@@ -281,14 +281,14 @@ jobs:
281281
282282
if [ -f diff_output.txt ]; then
283283
echo "DEBUG: diff_output.txt exists, size: $(wc -c < diff_output.txt)" >&2
284-
echo "diff_output<<DIFF_EOF" >> $GITHUB_OUTPUT
284+
echo "diff_output<<MODULE_MONITOR_DELIMITER" >> $GITHUB_OUTPUT
285285
cat diff_output.txt >> $GITHUB_OUTPUT
286-
echo "DIFF_EOF" >> $GITHUB_OUTPUT
286+
echo "MODULE_MONITOR_DELIMITER" >> $GITHUB_OUTPUT
287287
else
288288
echo "DEBUG: diff_output.txt not found" >&2
289-
echo "diff_output<<DIFF_EOF" >> $GITHUB_OUTPUT
289+
echo "diff_output<<MODULE_MONITOR_DELIMITER" >> $GITHUB_OUTPUT
290290
echo "No changes detected" >> $GITHUB_OUTPUT
291-
echo "DIFF_EOF" >> $GITHUB_OUTPUT
291+
echo "MODULE_MONITOR_DELIMITER" >> $GITHUB_OUTPUT
292292
fi
293293
294294

0 commit comments

Comments
 (0)