Skip to content

Commit 7ea2ec2

Browse files
committed
add style guide
Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
1 parent a83f038 commit 7ea2ec2

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/auto-blog-post.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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

scripts/blog-prompt.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Write a technical blog post announcing Radius {RELEASE_NAME} for developers and
33
Release notes (YOUR ONLY SOURCE OF TRUTH):
44
{RELEASE_NOTES}
55

6+
Style guide:
7+
{STYLE_GUIDE}
8+
69
Style reference from previous posts:
710
{BLOG_CONTEXT}
811

0 commit comments

Comments
 (0)