name: Clean Artifacts
on:
  schedule:
    # Once a day
    - cron: "0 0 * * *"
  workflow_dispatch:
jobs:
  remove-old-artifacts:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - name: Remove old artifacts
        uses: c-hive/gha-remove-artifacts@44fc7acaf1b3d0987da0e8d4707a989d80e9554b # v1.4.0
        with:
          age: "1 week"
          skip-tags: true
          skip-recent: 5
