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 1 * *
workflow_call: {}
# Disable permissions for all available scopes
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.repository }}
cancel-in-progress: true
jobs:
delete-workflow-run:
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@39f0bbed25d76b34de5594dceab824811479e5de # v2.0.6
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 90
keep_minimum_runs: 14