Skip to content

Commit c9392c0

Browse files
committed
ci: skip symlinks
1 parent a778c27 commit c9392c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ghpages-cleanup.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- name: Mark stale directories for removal
2424
run: |
2525
for dir in */; do
26+
[ -L "${dir%/}" ] && continue # skip symlinks (trim trailing slash for test)
2627
if [ -z "$(git log -n 1 --since "1 month ago" -- "$dir")" ]; then
2728
echo "Removing stale directory: $dir"
2829
git rm --quiet -r "$dir"

0 commit comments

Comments
 (0)