Files
CleanShop/.github/workflows/delete-workflow-runs.yml
T
2025-04-02 10:06:56 -03:00

20 lines
552 B
YAML

# https://github.com/marketplace/actions/delete-workflow-runs
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
contents: read
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2.0.6
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 1
keep_minimum_runs: 5