Skip to content

Workflow Cleanup

Workflow Cleanup #161

name: Workflow Cleanup
on:
workflow_dispatch:
schedule:
- cron: '0 01 * * 1-5' # UTC time
concurrency:
group: "${{ github.ref }}_cleanup"
cancel-in-progress: true
jobs:
cleanup:
name: Clean up Workflows
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Delete old workflow runs
uses: MajorScruffy/[email protected]
with:
repository: ${{ github.repository }}
older-than-seconds: 259200 # 3 days
env:
GITHUB_TOKEN: ${{ secrets.ORG_BOT_PAT }}