feat: update sync workflow to use MIRROR_DISCLAIMER.md file (#300)

- Add MIRROR_DISCLAIMER.md file to base-action directory
- Update sync workflow to concatenate disclaimer with README
- Cleaner approach than embedding content in workflow file

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Ashwin Bhat
2025-07-18 14:54:19 -07:00
committed by GitHub
parent dfa92d6952
commit d1e03ad18e
2 changed files with 17 additions and 0 deletions

View File

@@ -56,6 +56,12 @@ jobs:
# Copy all contents from base-action
cp -r ../base-action/. .
# Prepend mirror disclaimer to README if both files exist
if [ -f "README.md" ] && [ -f "MIRROR_DISCLAIMER.md" ]; then
cat MIRROR_DISCLAIMER.md README.md > README.tmp
mv README.tmp README.md
fi
# Check if there are any changes
if git diff --quiet && git diff --staged --quiet; then
echo "No changes to sync"