Skip to content

Commit 0dda482

Browse files
authored
chore: update sync workflow to exclude bash tests (#184)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
1 parent 99d9d88 commit 0dda482

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/sync-actions.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,20 @@ jobs:
225225
echo "::group::Syncing action folders from gh-aw/actions/ to repo root"
226226
# --archive preserves permissions/timestamps; --delete removes files absent in source (remote wins)
227227
# --exclude='README*' preserves any local README files in each destination folder
228-
# --exclude='*.test.cjs' prevents test files from being copied into the destination
228+
# --exclude='*.test.cjs' and --exclude='*_test.sh' prevent test files from being copied into the destination
229229
for dir in gh-aw/actions/*/; do
230230
name=$(basename "$dir")
231231
echo "Syncing: gh-aw/actions/$name/ -> gh-aw-actions/$name/"
232-
rsync --archive --verbose --delete --exclude='README*' --exclude='*.test.cjs' "gh-aw/actions/$name/" "gh-aw-actions/$name/"
232+
rsync --archive --verbose --delete --exclude='README*' --exclude='*.test.cjs' --exclude='*_test.sh' "gh-aw/actions/$name/" "gh-aw-actions/$name/"
233233
done
234234
235-
# Explicitly remove any lingering *.test.cjs files from destination folders, since rsync --delete
236-
# does not delete files that match an --exclude pattern.
235+
# Explicitly remove any lingering *.test.cjs and *_test.sh files from destination folders,
236+
# since rsync --delete does not delete files that match an --exclude pattern.
237237
for dir in gh-aw/actions/*/; do
238238
name=$(basename "$dir")
239239
if [ -d "gh-aw-actions/$name" ]; then
240240
find "gh-aw-actions/$name" -type f -name '*.test.cjs' -delete 2>/dev/null || true
241+
find "gh-aw-actions/$name" -type f -name '*_test.sh' -delete 2>/dev/null || true
241242
fi
242243
done
243244

0 commit comments

Comments
 (0)