File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments