diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2439d67dc6..126072f4c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 +