Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
clean up old updates back to 3 years
  • Loading branch information
yufree authored Jan 14, 2025
1 parent 84d0696 commit 5b979ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ jobs:
- name: Fetch RSS
run: |
Rscript R/fetch.R
- name: Clean up old updates
run: |
find content/post/ -type f -mtime +1096 -delete
- name: Push results
run: |
git add --all *
git commit -m "Daily Update"
git push -q https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:master

0 comments on commit 5b979ba

Please sign in to comment.