diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index dc1a032..d598ad3 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -26,9 +26,10 @@ concurrency: jobs: cleanup: if: github.event_name != 'pull_request' - runs-on: ubuntu-latest - # the script stops after 45 minutes - timeout-minutes: 55 + # the backlog is gone, a run only reads the pages; slim jobs end after 15 minutes + runs-on: ubuntu-slim + # the script stops after MAX_DURATION + timeout-minutes: 15 permissions: contents: read packages: write @@ -53,6 +54,8 @@ jobs: MAX_AGE: 24 # in days, for untagged versions MAX_UNTAGGED_AGE: 7 + # in seconds, before the job timeout + MAX_DURATION: 720 # only reads, so it can't delete anything whatever the pull request changes dry-run: