Skip to content

Fix YAML syntax error on line 104 in stale-hip-management workflow - #1323

Merged
mgarbs merged 1 commit into
mainfrom
fix-stale-workflow-yaml-line-104
Nov 4, 2025
Merged

Fix YAML syntax error on line 104 in stale-hip-management workflow#1323
mgarbs merged 1 commit into
mainfrom
fix-stale-workflow-yaml-line-104

Conversation

@mgarbs

@mgarbs mgarbs commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Summary

Fixes YAML syntax error that prevented the stale-hip-management workflow from running.

Root Cause

Multi-line strings in YAML's run: blocks cause parsing issues when using heredocs or multi-line variable assignments. The YAML parser cannot properly determine where bash code ends and YAML structure resumes.

Solution

Replaced multi-line string with single-line format using escaped newlines (\n). This completely avoids YAML's multi-line string parsing issues.

Changes

  • Replaced multi-line string assignment with single-line string using \n\n for line breaks
  • No functional changes to the workflow logic

Testing

✅ Workflow now passes GitHub's YAML validation
✅ Successfully triggered manual workflow run: https://github.com/hiero-ledger/hiero-improvement-proposals/actions/runs/19103368460
✅ Workflow completed successfully in 20 seconds

Replace heredoc with variable assignment to avoid YAML parsing issues

Signed-off-by: Michael Garber <michael.garber@hashgraph.com>
@mgarbs
mgarbs requested review from a team as code owners November 4, 2025 14:42
@mgarbs
mgarbs requested a review from leninmehedy November 4, 2025 14:42
@mgarbs
mgarbs merged commit 45b9798 into main Nov 4, 2025
12 of 13 checks passed
@mgarbs
mgarbs deleted the fix-stale-workflow-yaml-line-104 branch November 4, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants