{"id":30577690,"url":"https://github.com/iamazeem/delete-workflow-runs-action","last_synced_at":"2025-10-28T17:03:13.452Z","repository":{"id":310528497,"uuid":"938038259","full_name":"iamazeem/delete-workflow-runs-action","owner":"iamazeem","description":"GitHub Action to delete workflow runs","archived":false,"fork":false,"pushed_at":"2025-08-18T16:37:52.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T05:35:43.325Z","etag":null,"topics":["github-action","github-composite-action"],"latest_commit_sha":null,"homepage":"https://github.com/iamazeem/delete-workflow-runs-action","language":"Shell","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/iamazeem.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,"zenodo":null}},"created_at":"2025-02-24T10:21:19.000Z","updated_at":"2025-08-18T16:37:49.000Z","dependencies_parsed_at":"2025-08-18T18:39:26.383Z","dependency_job_id":null,"html_url":"https://github.com/iamazeem/delete-workflow-runs-action","commit_stats":null,"previous_names":["iamazeem/delete-workflow-runs-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/iamazeem/delete-workflow-runs-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazeem%2Fdelete-workflow-runs-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazeem%2Fdelete-workflow-runs-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazeem%2Fdelete-workflow-runs-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazeem%2Fdelete-workflow-runs-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamazeem","download_url":"https://codeload.github.com/iamazeem/delete-workflow-runs-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazeem%2Fdelete-workflow-runs-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281476668,"owners_count":26508145,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["github-action","github-composite-action"],"created_at":"2025-08-29T02:42:02.771Z","updated_at":"2025-10-28T17:03:13.446Z","avatar_url":"https://github.com/iamazeem.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# delete-workflow-runs-action\n\n[![CI](https://github.com/iamazeem/delete-workflow-runs-action/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/iamAzeem/delete-workflow-runs-action/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-darkgreen.svg?style=flat-square)](https://github.com/iamAzeem/delete-workflow-runs-action/blob/master/LICENSE)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/iamAzeem/delete-workflow-runs-action?style=flat-square)\n\nGitHub Action to delete workflow runs.\n\n## Usage\n\n### Inputs\n\n|            Input             | Required |        Default        | Description                                         |\n| :--------------------------: | :------: | :-------------------: | :-------------------------------------------------- |\n|           `token`            |  false   | `${{ github.token }}` | GitHub Token                                        |\n| `include-disabled-workflows` |  false   |        `true`         | Include disabled workflows                          |\n|           `branch`           |  false   |                       | Filter by branch                                    |\n|         `commit-sha`         |  false   |                       | Filter by commit SHA                                |\n|       `creation-date`        |  false   |                       | Filter by creation date e.g. `2025-02-24T01:00:00Z` |\n|           `event`            |  false   |                       | Filter by event e.g. `pull_request`                 |\n|           `status`           |  false   |                       | Filter by status e.g. `cancelled`                   |\n|          `username`          |  false   |                       | Filter by username                                  |\n|          `workflow`          |  false   |                       | Filter by workflow filename e.g. `ci.yml`           |\n|            `keep`            |  false   |          `0`          | Keep last workflow runs [min=0, max=10]             |\n\nFor `event`, see [Events that trigger\nworkflows](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows)\nfor the complete list.\n\nFor `status`, see\n[List workflow runs for a repository](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository)\nAPI for all its supported values.\n\n### Permissions\n\nThe permissions `actions: write` are required to delete workflow runs. See\n[Automatic token authentication](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication)\nfor more details.\n\n### Examples\n\nAssume that the required permissions are set:\n\n```yml\npermissions:\n  actions: write\n```\n\n#### Delete all workflow runs\n\n```yml\n- uses: iamazeem/delete-workflow-runs-action@v1\n```\n\n#### Delete all workflow runs excluding the disabled ones\n\n```yml\n- uses: iamazeem/delete-workflow-runs-action@v1\n  with:\n    include-disabled-workflows: false\n```\n\n#### Delete all workflow runs except the last one\n\n```yml\n- uses: iamazeem/delete-workflow-runs-action@v1\n  with:\n    keep: 1\n```\n\n## Contribute\n\nOpen an\n[issue](https://github.com/iamazeem/delete-workflow-runs-action/issues/new/choose)\nto report bugs or propose new features and enhancements.\n\nPRs are always welcome. Please follow this workflow for submitting PRs:\n\n- [Fork](https://github.com/iamazeem/delete-workflow-runs-action/fork) the repo.\n- Check out the latest `main` branch.\n- Create a `feature` or `bugfix` branch from `main`.\n- Commit and push changes to your forked repo.\n- Make sure to add tests. See [CI](./.github/workflows/ci.yml).\n- Lint and fix\n  [Bash](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html)\n  issues with [shellcheck](https://www.shellcheck.net/) online or with\n  [vscode-shellcheck](https://github.com/vscode-shellcheck/vscode-shellcheck)\n  extension.\n- Lint and fix README Markdown issues with\n  [vscode-markdownlint](https://github.com/DavidAnson/vscode-markdownlint)\n  extension.\n- Submit the PR.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamazeem%2Fdelete-workflow-runs-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamazeem%2Fdelete-workflow-runs-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamazeem%2Fdelete-workflow-runs-action/lists"}