From d1e03ad18e564025979ec6891ad333315b8671c1 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Fri, 18 Jul 2025 14:54:19 -0700 Subject: [PATCH] feat: update sync workflow to use MIRROR_DISCLAIMER.md file (#300) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .github/workflows/sync-base-action.yml | 6 ++++++ base-action/MIRROR_DISCLAIMER.md | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 base-action/MIRROR_DISCLAIMER.md diff --git a/.github/workflows/sync-base-action.yml b/.github/workflows/sync-base-action.yml index a2481b4..32ba9b4 100644 --- a/.github/workflows/sync-base-action.yml +++ b/.github/workflows/sync-base-action.yml @@ -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" diff --git a/base-action/MIRROR_DISCLAIMER.md b/base-action/MIRROR_DISCLAIMER.md new file mode 100644 index 0000000..e59ed46 --- /dev/null +++ b/base-action/MIRROR_DISCLAIMER.md @@ -0,0 +1,11 @@ +# ⚠️ This is a Mirror Repository + +This repository is an automated mirror of the `base-action` directory from [anthropics/claude-code-action](https://github.com/anthropics/claude-code-action). + +**Do not submit PRs or issues to this repository.** Instead, please contribute to the main repository: + +- 🐛 [Report issues](https://github.com/anthropics/claude-code-action/issues) +- 🔧 [Submit pull requests](https://github.com/anthropics/claude-code-action/pulls) +- 📖 [View documentation](https://github.com/anthropics/claude-code-action#readme) + +---