{"id":18336903,"url":"https://github.com/irkode/purge-workflow-runs","last_synced_at":"2025-04-09T19:56:43.297Z","repository":{"id":119238682,"uuid":"500337487","full_name":"irkode/purge-workflow-runs","owner":"irkode","description":"Purge old work workflow runs based  on time and optional name","archived":false,"fork":false,"pushed_at":"2022-06-06T17:29:00.000Z","size":225,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T19:56:37.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/irkode.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":"2022-06-06T07:41:24.000Z","updated_at":"2022-06-06T11:11:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f702acfb-afee-4bf2-ba25-da841b6896a3","html_url":"https://github.com/irkode/purge-workflow-runs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irkode%2Fpurge-workflow-runs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irkode%2Fpurge-workflow-runs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irkode%2Fpurge-workflow-runs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irkode%2Fpurge-workflow-runs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irkode","download_url":"https://codeload.github.com/irkode/purge-workflow-runs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103910,"owners_count":21048245,"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":[],"created_at":"2024-11-05T20:09:25.044Z","updated_at":"2025-04-09T19:56:43.274Z","avatar_url":"https://github.com/irkode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purge-workflows\n\nPurge old workflow runs based on time and/or name.\n\n## Synopsis\n\nAction to delete workflow runs from a github repository. The action will\nprocess _completed_ workflows only and delete old runs. The default retention\nperiod is 90 days and can be changed using _keep_ parameter.\n\nYou may restrict the purge to one workflow with the _workflow_ parameter.\n\n## Inputs\n\n### `keep`\n\nPurge runs older than this days back, only (default: 90)\n\n### `workflow`\n\nOnly purge runs of this workflow (default: purge all workflows)\n\n### `token`\n\nPersonal access token (default: ${{ github.token }}\n\n### `owner`\n\nRepository owner (default: github.repository_owner)\n\n### `repo`\n\nRepository name (default: ${{ github.event.repository.name }})\n\n## Outputs\n\n### `result`\n\nNumber of purged workflows\n\n## Example usage\n\nThese may help you to setup the action quickly.\n\n### Minimal workflow using all defaults\n\n```yaml\nname: Purge Workflows\n\non:\n  workflow_dispatch:\n\njobs:\n  purge-workflows:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: irkode/purge-workflow-runs@main\n```\n\n### Allowing to give the retention days\n\n```yaml\nname: Purge Workflows\n\non:\n  workflow_dispatch:\n    inputs:\n      keep:\n        description: \"Keep logs newer than this days back\"\n        default: \"30\"\n        required: false\n\njobs:\n  purge-workflows:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: irkode/purge-workflow-runs@main\n          keep: ${{ github.event.inputs.keep }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firkode%2Fpurge-workflow-runs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firkode%2Fpurge-workflow-runs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firkode%2Fpurge-workflow-runs/lists"}