Purge old workflow runs based on time and/or name.
Action to delete workflow runs from a github repository. The action will process completed workflows only and delete old runs. The default retention period is 90 days and can be changed using keep parameter.
You may restrict the purge to one workflow with the workflow parameter.
Purge runs older than this days back, only (default: 90)
Only purge runs of this workflow (default: purge all workflows)
Personal access token (default: ${{ github.token }}
Repository owner (default: github.repository_owner)
Repository name (default: ${{ github.event.repository.name }})
Number of purged workflows
These may help you to setup the action quickly.
name: Purge Workflows
on:
workflow_dispatch:
jobs:
purge-workflows:
runs-on: ubuntu-latest
steps:
- uses: irkode/purge-workflow-runs@main
name: Purge Workflows
on:
workflow_dispatch:
inputs:
keep:
description: "Keep logs newer than this days back"
default: "30"
required: false
jobs:
purge-workflows:
runs-on: ubuntu-latest
steps:
- uses: irkode/purge-workflow-runs@main
keep: ${{ github.event.inputs.keep }}