Skip to content

Commit 46e46b8

Browse files
committed
Update swk commands
Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
1 parent b63f66e commit 46e46b8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,20 @@ jobs:
7979
# Get contribution guide content from blog repository
8080
echo "Loading contribution guide from blog repository..."
8181
if [ -f "radblog/guide/contribution-guide.md" ]; then
82-
STYLE_GUIDE=$(cat "radblog/guide/contribution-guide.md")
82+
cp "radblog/guide/contribution-guide.md" "contribution-guide.md"
8383
echo "✅ Contribution guide loaded successfully from radblog/guide/contribution-guide.md"
8484
else
8585
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
8787
fi
8888
8989
# Create AI prompt from template using safer approach
9090
cp scripts/blog-prompt.md prompt_template.md
9191
92-
# Replace placeholders safely
92+
# Replace placeholders with actual content
9393
sed -i "s/{RELEASE_NAME}/${{ steps.release-info.outputs.release_name }}/g" prompt_template.md
9494
95-
# Replace placeholders with actual content
95+
# Replace RELEASE_NOTES placeholder
9696
awk '
9797
BEGIN { RS = "\n"; ORS = "\n" }
9898
/{RELEASE_NOTES}/ {
@@ -103,7 +103,10 @@ jobs:
103103
next
104104
}
105105
/{STYLE_GUIDE}/ {
106-
print "'"$STYLE_GUIDE"'"
106+
while ((getline line < "contribution-guide.md") > 0) {
107+
print line
108+
}
109+
close("contribution-guide.md")
107110
next
108111
}
109112
/{BLOG_CONTEXT}/ {

0 commit comments

Comments
 (0)