From 73862044b4fd4a8cf7dc83378027e66f5630083e Mon Sep 17 00:00:00 2001 From: zzgosh <30567623+zzgosh@users.noreply.github.com> Date: Thu, 19 Mar 2026 15:12:20 +0800 Subject: [PATCH] fix: use heredoc for PROMPT to fix YAML block scalar indentation The multiline PROMPT string started at column 0, which caused the YAML parser to end the run block early (block scalar indentation level is determined by the first content line at 10 spaces). This broke YAML parsing entirely, causing the workflow name to display as the file path and the workflow to misfire on push events. Replace with a bash heredoc; all lines are now at 10-space YAML indentation so the block scalar is parsed correctly. --- .github/workflows/release.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 254cd5d..c269d56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,22 +99,25 @@ jobs: DIFF_STAT="Initial release" fi - PROMPT="You are a release notes generator. Based on the git changes below, write concise and natural release notes for version ${TAG}. + PROMPT=$(cat <