Skip to content

Fixed an issue with the delete_workflow_runs GitHub Workflow. #31

Fixed an issue with the delete_workflow_runs GitHub Workflow.

Fixed an issue with the delete_workflow_runs GitHub Workflow. #31

# This workflow will delete old workflow runs, on a schedule or manually triggered.

Check failure on line 1 in .github/workflows/delete_workflow_runs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/delete_workflow_runs.yml

Invalid workflow file

(Line: 4, Col: 13): Unexpected value 'read and write'
name: Delete old workflow runs
permissions:
contents: read and write
on:
workflow_dispatch:
inputs:
days:
description: "Number of days."
required: true
default: 30
minimum_runs:
description: "The minimum runs to keep for each workflow."
required: true
default: 6
jobs:
del_runs:
runs-on: ubuntu-24.04
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: ${{ github.event.inputs.days }}
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}