Skip to content

Commit f5bd47d

Browse files
committed
fix(release): Fix YAML syntax error at line 78
Fixed YAML syntax issues: 1. Replaced heredoc with multiple echo commands: - Heredoc can cause YAML parsing issues - Multiple echo commands are simpler and more reliable - Avoids special character conflicts 2. Removed underscore prefix at line 78: - Changed '_This changelog...' to '*This changelog...' - Underscore at line start can confuse YAML parsers 3. Updated changelog formatting: - Changed markdown italic to bullet points - More consistent with git-cliff output Changes: - Replaced heredoc <<'EOF' blocks with echo commands - Simplified file creation process - Fixed line 78 syntax error - Maintained same functionality This should resolve GitHub Actions workflow validation error.
1 parent 6565800 commit f5bd47d

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,10 @@ jobs:
7272
VERSION="${{ steps.version.outputs.version }}"
7373
7474
# Add version header to generated changelog
75-
cat > CHANGELOG_temp.md << 'EOF'
76-
# Changelog - Version $VERSION
77-
78-
_This changelog was automatically generated using git-cliff_
79-
80-
EOF
75+
echo "# Changelog - Version $VERSION" > CHANGELOG_temp.md
76+
echo "" >> CHANGELOG_temp.md
77+
echo "*This changelog was automatically generated using git-cliff*" >> CHANGELOG_temp.md
78+
echo "" >> CHANGELOG_temp.md
8179
8280
# Append generated changelog
8381
cat CHANGELOG.md >> CHANGELOG_temp.md
@@ -97,26 +95,23 @@ EOF
9795
CHANGELOG_FILE="CHANGELOG_${VERSION}.md"
9896
9997
# Use existing changelog
100-
cat > release_notes.md << 'EOF'
101-
### 📦 Release $VERSION
102-
103-
_Using existing \`$CHANGELOG_FILE\`_
104-
105-
EOF
98+
echo "### Release $VERSION" > release_notes.md
99+
echo "" >> release_notes.md
100+
echo "*Using existing \`$CHANGELOG_FILE\`*" >> release_notes.md
101+
echo "" >> release_notes.md
106102
107103
# Add changelog content
108104
cat "$CHANGELOG_FILE" >> release_notes.md
109105
else
110106
# Use git-cliff generated changelog
111-
cat > release_notes.md << 'EOF'
112-
### 📦 Release $VERSION
113-
114-
_Automatically generated using git-cliff_
115-
116-
EOF
107+
echo "### Release $VERSION" > release_notes.md
108+
echo "" >> release_notes.md
109+
echo "*Automatically generated using git-cliff*" >> release_notes.md
110+
echo "" >> release_notes.md
117111
118112
# Append generated changelog (without header we added)
119113
tail -n +2 CHANGELOG.md >> release_notes.md
114+
fi
120115
121116
echo "notes_file=release_notes.md" >> $GITHUB_OUTPUT
122117

0 commit comments

Comments
 (0)