You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "✅ Contribution guide loaded successfully from radblog/guide/contribution-guide.md"
84
84
else
85
85
echo "❌ Contribution guide not found at radblog/guide/contribution-guide.md, using fallback"
86
-
STYLE_GUIDE="WRITING GUIDELINES: Conversational, user-focused, technical depth, no marketing language, evidence-based content only from release notes."
86
+
echo "WRITING GUIDELINES: Conversational, user-focused, technical depth, no marketing language, evidence-based content only from release notes." > contribution-guide.md
87
87
fi
88
88
89
89
# Create AI prompt from template using safer approach
90
90
cp scripts/blog-prompt.md prompt_template.md
91
91
92
-
# Replace placeholders safely
92
+
# Replace placeholders with actual content
93
93
sed -i "s/{RELEASE_NAME}/${{ steps.release-info.outputs.release_name }}/g" prompt_template.md
94
94
95
-
# Replace placeholders with actual content
95
+
# Replace RELEASE_NOTES placeholder
96
96
awk '
97
97
BEGIN { RS = "\n"; ORS = "\n" }
98
98
/{RELEASE_NOTES}/ {
@@ -103,7 +103,10 @@ jobs:
103
103
next
104
104
}
105
105
/{STYLE_GUIDE}/ {
106
-
print "'"$STYLE_GUIDE"'"
106
+
while ((getline line < "contribution-guide.md") > 0) {
0 commit comments