Skip to content

Commit

Permalink
Log dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Feb 11, 2025
1 parent 907da74 commit 31718a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/clean-up-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
run: |
DATE_FROM_DAYS_AGO=`date --date="${{env.DAYS_OLD}} days ago" +"%Y"-"%m"-"%d" || date -v-${{env.DAYS_OLD}}d +"%Y"-"%m"-"%d"`;
echo $DATE_FROM_DAYS_AGO
echo $(find ${{ env.PREVIEW_DIR }} -mindepth 1 -maxdepth 1 -type d -print)
for i in $(find ${{ env.PREVIEW_DIR }} -mindepth 1 -maxdepth 1 -type d -print); do
if [[ $(git log --before=${{DATE_FROM_DAYS_AGO}} $i | tail -1) ]]; then
if [[ $(git log --before=${DATE_FROM_DAYS_AGO} $i | tail -1) ]]; then
echo "Deleting directory $i"
rm -rf $i
fi
Expand Down

0 comments on commit 31718a1

Please sign in to comment.