diff --git a/.github/workflows/pages_cleanup.yml b/.github/workflows/pages_cleanup.yml index 66fb498a7..979baf949 100644 --- a/.github/workflows/pages_cleanup.yml +++ b/.github/workflows/pages_cleanup.yml @@ -1,9 +1,9 @@ name: GitHub Pages Cleanup on: - push: - branches: - - gh-pages + schedule: + - cron: '0 0 * * 0' + workflow_dispatch: permissions: contents: write @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: gh-pages - name: Delete directories older than 1 year run: |