{"id":26686794,"url":"https://github.com/fgrzl/workflow-cleanup","last_synced_at":"2025-03-26T12:14:32.443Z","repository":{"id":284401605,"uuid":"954812873","full_name":"fgrzl/workflow-cleanup","owner":"fgrzl","description":"cleanup workflow history","archived":false,"fork":false,"pushed_at":"2025-03-25T17:21:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-25T18:29:55.475Z","etag":null,"topics":["actions"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fgrzl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-25T16:49:34.000Z","updated_at":"2025-03-25T17:20:28.000Z","dependencies_parsed_at":"2025-03-25T18:41:31.492Z","dependency_job_id":null,"html_url":"https://github.com/fgrzl/workflow-cleanup","commit_stats":null,"previous_names":["fgrzl/workflow-cleanup"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrzl%2Fworkflow-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrzl%2Fworkflow-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrzl%2Fworkflow-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrzl%2Fworkflow-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgrzl","download_url":"https://codeload.github.com/fgrzl/workflow-cleanup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650484,"owners_count":20650105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions"],"created_at":"2025-03-26T12:14:31.847Z","updated_at":"2025-03-26T12:14:32.433Z","avatar_url":"https://github.com/fgrzl.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cleanup Workflow History Action\n\nThis GitHub Action deletes old workflow runs from your repository based on their age. It’s perfect for keeping your Actions history clean and manageable.\n\n## Inputs\n\n| Name       | Description                                            | Required | Default |\n|------------|--------------------------------------------------------|----------|---------|\n| `days_old` | Number of days to keep workflow runs                   | No       | `7`     |\n| `per_page` | Number of workflow runs to fetch per request (max 100) | No       | `50`    |\n\n## Example Usage\n\nAdd this to your workflow file (e.g., `.github/workflows/cleanup.yml`):\n\n```yaml\nname: Clean Up Old Workflow Runs\n\non:\n  schedule:\n    - cron: '0 0 * * *' # Runs daily at midnight UTC\n  workflow_dispatch: # Allows manual triggering\n\njobs:\n  cleanup:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Delete Old Workflow Runs\n        uses: fgrzl/workflow-cleanup@v1\n        with:\n          days_old: 14 # Delete runs older than 14 days\n          per_page: 100 # Fetch up to 100 runs at a time\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgrzl%2Fworkflow-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgrzl%2Fworkflow-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgrzl%2Fworkflow-cleanup/lists"}