Skip to content

Commit 73ddc46

Browse files
committed
Add style guide
Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
1 parent 0720647 commit 73ddc46

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,13 @@ jobs:
7676
done
7777
fi
7878
79-
# Get contribution guide content from main branch
80-
echo "Fetching contribution guide from GitHub main branch..."
81-
HTTP_STATUS=$(curl -s -w "%{http_code}" "https://raw.githubusercontent.com/radius-project/blog/main/radblog/guide/contribution-guide.md" -o contribution-guide.md)
82-
83-
if [ "$HTTP_STATUS" = "200" ] && [ -f "contribution-guide.md" ] && [ -s "contribution-guide.md" ]; then
84-
STYLE_GUIDE=$(cat contribution-guide.md)
85-
echo "✅ Contribution guide fetched successfully from GitHub (HTTP $HTTP_STATUS)"
79+
# Get contribution guide content from blog repository
80+
echo "Loading contribution guide from blog repository..."
81+
if [ -f "radblog/guide/contribution-guide.md" ]; then
82+
STYLE_GUIDE=$(cat "radblog/guide/contribution-guide.md")
83+
echo "✅ Contribution guide loaded successfully from radblog/guide/contribution-guide.md"
8684
else
87-
echo "❌ Failed to fetch contribution guide (HTTP $HTTP_STATUS), using fallback"
85+
echo "❌ Contribution guide not found at radblog/guide/contribution-guide.md, using fallback"
8886
STYLE_GUIDE="WRITING GUIDELINES: Conversational, user-focused, technical depth, no marketing language, evidence-based content only from release notes."
8987
fi
9088

0 commit comments

Comments
 (0)