File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,24 @@ jobs:
7676 done
7777 fi
7878
79+ # Get contribution guide content from re/ab branch
80+ echo "Fetching contribution guide from re/ab branch..."
81+ curl -s "https://raw.githubusercontent.com/radius-project/blog/re/ab/radblog/guide/contribution-guide.md" > contribution-guide.md
82+ if [ -f "contribution-guide.md" ] && [ -s "contribution-guide.md" ]; then
83+ STYLE_GUIDE=$(cat contribution-guide.md)
84+ echo "✅ Contribution guide fetched successfully"
85+ else
86+ echo "❌ Failed to fetch contribution guide, using fallback"
87+ STYLE_GUIDE="Follow Radius blog style guide: conversational, user-focused, technical depth over marketing."
88+ fi
89+
7990 # Create AI prompt from template using safer approach
8091 cp scripts/blog-prompt.md prompt_template.md
8192
8293 # Replace placeholders safely
8394 sed -i "s/{RELEASE_NAME}/${{ steps.release-info.outputs.release_name }}/g" prompt_template.md
8495
85- # Replace RELEASE_NOTES placeholder with actual content
96+ # Replace placeholders with actual content
8697 awk '
8798 BEGIN { RS = "\n"; ORS = "\n" }
8899 /{RELEASE_NOTES}/ {
@@ -92,6 +103,10 @@ jobs:
92103 close("release_body.md")
93104 next
94105 }
106+ /{STYLE_GUIDE}/ {
107+ print "'"$STYLE_GUIDE"'"
108+ next
109+ }
95110 /{BLOG_CONTEXT}/ {
96111 print "'"$CONTEXT"'"
97112 next
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ Write a technical blog post announcing Radius {RELEASE_NAME} for developers and
33Release notes (YOUR ONLY SOURCE OF TRUTH):
44{RELEASE_NOTES}
55
6+ Style guide:
7+ {STYLE_GUIDE}
8+
69Style reference from previous posts:
710{BLOG_CONTEXT}
811
You can’t perform that action at this time.
0 commit comments