Skip to content

Commit e472a1b

Browse files
authored
ci: fix YAML syntax error in release-on-main workflow (#169)
1 parent a4d7b06 commit e472a1b

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/release-on-main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,23 @@ jobs:
100100
exit 1
101101
fi
102102
103-
PROMPT=$(cat <<'EOF'
104-
You are a release manager. Analyze merged pull requests since the last release and decide semver bump.
105-
Allowed outputs:
106-
- none
107-
- patch
108-
- minor
109-
110-
Rules:
111-
- Never return major. Major releases are manual-only.
112-
- Use a judicious standard: user-facing features, capability expansion, or notable additive behavior => minor.
113-
- Bug fixes, refactors, infra/internal changes, docs/tests only => patch or none.
114-
- If no meaningful published change, choose none.
115-
116-
Return ONLY strict JSON:
117-
{"decision":"none|patch|minor","reason":"short reason","highlights":["...","..."]}
118-
EOF
119-
)
103+
read -r -d '' PROMPT <<'PROMPT_EOF' || true
104+
You are a release manager. Analyze merged pull requests since the last release and decide semver bump.
105+
Allowed outputs:
106+
- none
107+
- patch
108+
- minor
109+
110+
Rules:
111+
- Never return major. Major releases are manual-only.
112+
- Use a judicious standard: user-facing features, capability expansion, or notable additive behavior => minor.
113+
- Bug fixes, refactors, infra/internal changes, docs/tests only => patch or none.
114+
- If no meaningful published change, choose none.
115+
116+
Return ONLY strict JSON:
117+
{"decision":"none|patch|minor","reason":"short reason","highlights":["...","..."]}
118+
PROMPT_EOF
119+
PROMPT=$(echo "$PROMPT" | sed 's/^ //')
120120
121121
jq -n \
122122
--arg model "claude-3-5-sonnet-latest" \

0 commit comments

Comments
 (0)