From c6ea8c94e15202ff791a051871de6c2663b28720 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 03:53:28 +0000 Subject: [PATCH] chore: update sync workflow to exclude bash tests --- .github/workflows/sync-actions.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-actions.yml b/.github/workflows/sync-actions.yml index 769abb7d..a5503085 100644 --- a/.github/workflows/sync-actions.yml +++ b/.github/workflows/sync-actions.yml @@ -225,19 +225,20 @@ jobs: echo "::group::Syncing action folders from gh-aw/actions/ to repo root" # --archive preserves permissions/timestamps; --delete removes files absent in source (remote wins) # --exclude='README*' preserves any local README files in each destination folder - # --exclude='*.test.cjs' prevents test files from being copied into the destination + # --exclude='*.test.cjs' and --exclude='*_test.sh' prevent test files from being copied into the destination for dir in gh-aw/actions/*/; do name=$(basename "$dir") echo "Syncing: gh-aw/actions/$name/ -> gh-aw-actions/$name/" - rsync --archive --verbose --delete --exclude='README*' --exclude='*.test.cjs' "gh-aw/actions/$name/" "gh-aw-actions/$name/" + rsync --archive --verbose --delete --exclude='README*' --exclude='*.test.cjs' --exclude='*_test.sh' "gh-aw/actions/$name/" "gh-aw-actions/$name/" done - # Explicitly remove any lingering *.test.cjs files from destination folders, since rsync --delete - # does not delete files that match an --exclude pattern. + # Explicitly remove any lingering *.test.cjs and *_test.sh files from destination folders, + # since rsync --delete does not delete files that match an --exclude pattern. for dir in gh-aw/actions/*/; do name=$(basename "$dir") if [ -d "gh-aw-actions/$name" ]; then find "gh-aw-actions/$name" -type f -name '*.test.cjs' -delete 2>/dev/null || true + find "gh-aw-actions/$name" -type f -name '*_test.sh' -delete 2>/dev/null || true fi done