Skip to content

Delete old workflow runs #2

Delete old workflow runs

Delete old workflow runs #2

name: Delete old workflow runs
on:
schedule:
- cron: '0 0 */2 * *'
workflow_dispatch:
jobs:
del_runs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@39f0bbed25d76b34de5594dceab824811479e5de # v2.0.6
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 2
keep_minimum_runs: 2