19 lines
462 B
YAML
19 lines
462 B
YAML
name: Delete old workflow runs
|
|
on:
|
|
schedule:
|
|
- cron: "0 22 * * 1-5" # Schedule to run at 22:00 (10 PM) from Monday to Friday
|
|
|
|
jobs:
|
|
del_runs:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: write
|
|
steps:
|
|
- name: Delete workflow runs
|
|
uses: Mattraks/delete-workflow-runs@v2
|
|
with:
|
|
token: ${{ github.token }}
|
|
repository: ${{ github.repository }}
|
|
retain_days: 1
|
|
keep_minimum_runs: 5
|