name: Remove GitHub Action Old Artifacts

on:
  schedule:
    # Every day at 1am
    - cron: "0 1 * * *"

jobs:
  remove-old-artifacts:
    runs-on: depot-ubuntu-22.04-4
    timeout-minutes: 30

    steps:
      - name: Remove old artifacts
        uses: c-hive/gha-remove-artifacts@v1
        with:
          age: "7 days"
