Skip to content

Commit

Permalink
adding conditions on removing _downloads folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwimer committed Jul 1, 2024
1 parent 1673fa0 commit cb04165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
- name: Stage Cleanup for _downloads directory (files older than 10 days)
if: github.event_name == 'pull_request' && github.event.action == 'closed'
run: |
find _downloads -type f -mtime +10 -delete
git add _downloads
find _downloads -type f -mtime +10 -delete || true
git add _downloads || true
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
Expand Down

0 comments on commit cb04165

Please sign in to comment.