{"id":16416942,"url":"https://github.com/windyakin/delete-package-versions-keep-latest","last_synced_at":"2025-10-18T04:19:01.963Z","repository":{"id":37074161,"uuid":"347802557","full_name":"windyakin/delete-package-versions-keep-latest","owner":"windyakin","description":"Specify the number of versions to keep actions","archived":false,"fork":false,"pushed_at":"2023-03-03T20:58:16.000Z","size":397,"stargazers_count":8,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-21T04:19:55.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/windyakin.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":"2021-03-15T01:41:30.000Z","updated_at":"2024-09-21T22:00:16.000Z","dependencies_parsed_at":"2024-10-28T15:52:58.608Z","dependency_job_id":null,"html_url":"https://github.com/windyakin/delete-package-versions-keep-latest","commit_stats":{"total_commits":62,"total_committers":4,"mean_commits":15.5,"dds":0.564516129032258,"last_synced_commit":"c9844662f6ed8904ca8b7bedcf9d1fda42fe6978"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/windyakin/delete-package-versions-keep-latest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windyakin%2Fdelete-package-versions-keep-latest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windyakin%2Fdelete-package-versions-keep-latest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windyakin%2Fdelete-package-versions-keep-latest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windyakin%2Fdelete-package-versions-keep-latest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windyakin","download_url":"https://codeload.github.com/windyakin/delete-package-versions-keep-latest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windyakin%2Fdelete-package-versions-keep-latest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745600,"owners_count":24813509,"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-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-10-11T07:10:34.675Z","updated_at":"2025-10-18T04:18:56.892Z","avatar_url":"https://github.com/windyakin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# delete-package-versions-keep-latest\n\n[delete-package-versions](https://github.com/actions/delete-package-versions) will delete the specified number of old packages. But in this action, you can specify the number of latest packages you want to keep, and only remove older packages.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"doc/description.png\"\u003e\n\u003c/p\u003e\n\n## Getting started\n\n```yaml\nsteps:\n- uses: windyakin/delete-package-versions-keep-latest@v1\n  with:\n    owner: windyakin\n    repo: package-repository\n    package-name: package\n    keep-latest-package-versions: 10\n```\n\n## Variables\n\nName | Default | Description\n-- | -- | -- |\n`owner` | (From [context](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context)) | Package linked repository owner\n`repo` | (From [context](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context)) | Package linked repository name\n`package-name` | (required) | Package name\n`keep-latest-package-versions` | 10 | The number of versions to keep\n\n## License\n\n[MIT License](LICENSE)\n\n## Author\n\n@windyakin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindyakin%2Fdelete-package-versions-keep-latest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindyakin%2Fdelete-package-versions-keep-latest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindyakin%2Fdelete-package-versions-keep-latest/lists"}