Skip to content

Remove old artifacts #557

Remove old artifacts

Remove old artifacts #557

name: Remove old artifacts
on:
schedule:
# Every day at 1am
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
remove-old-artifacts:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Remove old artifacts
uses: c-hive/[email protected]
with:
age: '1 month' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
# Optional inputs
# skip-tags: true
skip-recent: 3
- name: Delete workflow runs
uses: Mattraks/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 6