Skip to content
This repository was archived by the owner on Aug 16, 2026. It is now read-only.

Commit 70bbf3b

Browse files
authored
Merge pull request #16 from zzgosh/fix/yaml-heredoc-prompt
fix: use heredoc for PROMPT to fix YAML block scalar indentation
2 parents 60042bf + 7386204 commit 70bbf3b

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,25 @@ jobs:
9999
DIFF_STAT="Initial release"
100100
fi
101101
102-
PROMPT="You are a release notes generator. Based on the git changes below, write concise and natural release notes for version ${TAG}.
102+
PROMPT=$(cat <<END_PROMPT
103+
You are a release notes generator. Based on the git changes below, write concise and natural release notes for version ${TAG}.
103104
104-
Project: ${{ steps.package.outputs.name }} (CLI for managing AGENTS.md files)
105+
Project: ${{ steps.package.outputs.name }} (CLI for managing AGENTS.md files)
105106
106-
Git commits:
107-
${GIT_LOG}
107+
Git commits:
108+
${GIT_LOG}
108109
109-
File change stats:
110-
${DIFF_STAT}
110+
File change stats:
111+
${DIFF_STAT}
111112
112-
Requirements:
113-
- Describe changes in clear, user-facing English
114-
- Group by category where appropriate (e.g. ✨ Features / 🐛 Bug Fixes / 🔧 Improvements / 📦 Build & Release)
115-
- Do not expose commit hashes or PR numbers
116-
- Output plain Markdown, do not wrap in a code block
117-
- Keep it under 300 words"
113+
Requirements:
114+
- Describe changes in clear, user-facing English
115+
- Group by category where appropriate (e.g. ✨ Features / 🐛 Bug Fixes / 🔧 Improvements / 📦 Build & Release)
116+
- Do not expose commit hashes or PR numbers
117+
- Output plain Markdown, do not wrap in a code block
118+
- Keep it under 300 words
119+
END_PROMPT
120+
)
118121
119122
RESPONSE=$(curl -sf --max-time 60 \
120123
-X POST "https://openrouter.ai/api/v1/messages" \

0 commit comments

Comments
 (0)