Skip to content

Commit

Permalink
Fix deleteing non-empty directory: 2.0/manual/build-27/html and firends
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Apr 16, 2024
1 parent 9db6089 commit 395c70e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/download_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,22 @@ jobs:
run: |
mkdir empty_folder
echo 1.12 >> include_file.txt
echo 1.12/release >> include_file.txt
echo 1.12/release/* >> include_file.txt
echo 1.12/release/*/* >> include_file.txt
echo 1.12/manual >> include_file.txt
echo 1.12/manual/* >> include_file.txt
echo 1.12/manual/*/pdf >> include_file.txt
echo 1.12/manual/*/pdf/* >> include_file.txt
echo 1.12/manual/*/html >> include_file.txt
echo 1.12/manual/*/html/* >> include_file.txt
echo 1.12/manual/*/html/* >> include_file.txt
echo 1.12/manual/*/html/build >> include_file.txt
echo 1.12/manual/*/html/build/html >> include_file.txt
echo 1.12/manual/*/html/build/html/* >> include_file.txt
echo 1.12/manual/*/html/build/html/*/* >> include_file.txt
echo 2.0 >> include_file.txt
echo 2.0/release >> include_file.txt
echo 2.0/release/* >> include_file.txt
echo 2.0/release/*/* >> include_file.txt
echo 2.0/manual >> include_file.txt
echo 2.0/manual/* >> include_file.txt
echo 2.0/manual/*/pdf >> include_file.txt
echo 2.0/manual/*/pdf/* >> include_file.txt
echo 2.0/manual/*/html >> include_file.txt
echo 2.0/manual/*/html/build >> include_file.txt
echo 2.0/manual/*/html/build/html >> include_file.txt
echo 2.0/manual/*/html/build/html/* >> include_file.txt
echo 2.0/manual/*/html/build/html/*/* >> include_file.txt
rsync --verbose --archive --times --recursive --delete --include-from=include_file.txt --exclude=* "empty_folder/" "${SSH_USER}@${SSH_HOST}:${DESTDIR}/snapshots/"
env:
DESTDIR: public_html/downloads
Expand Down

0 comments on commit 395c70e

Please sign in to comment.