Skip to content

Commit 7b419cd

Browse files
rolfedhclaude
andcommitted
fix: Allow placeholder dates in comments and code blocks
Update GitHub Actions validation to match Python script logic, allowing placeholder dates when they're in comments or code blocks. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f8b1aca commit 7b419cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/validate-blog-posts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
exit 1
7878
fi
7979
80-
# Look for literal placeholder dates in markdown files
81-
if grep -r "date: YYYY-MM-DD HH:MM:SS" docs/ --include="*.md" | grep -v template; then
80+
# Look for literal placeholder dates in markdown files (excluding code blocks and comments)
81+
if grep -r "date: YYYY-MM-DD HH:MM:SS" docs/ --include="*.md" | grep -v template | grep -v "# placeholder" | grep -v "\`\`\`yaml"; then
8282
echo "❌ Found literal placeholder dates in published content"
8383
exit 1
8484
fi

0 commit comments

Comments
 (0)