nikhilbadyal/Rm Release GitHub Action

A GitHub action to remove releases with their tags based on a regex pattern.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
GITHUB_TOKENGithub tokenyes
RELEASE_PATTERNRegex pattern to match releases.yes
RELEASES_TO_KEEPNumber of most recent releases to keep after filtering by RELEASE_PATTERN. Defaults to 0 (delete all matching releases).no0
MIN_RELEASES_TO_KEEPSafety floor for the number of most recent matching releases to keep, even when other filters would delete them. Defaults to 0.no0
EXCLUDE_PATTERNRegex pattern to exclude releases from deletion.no
DAYS_TO_KEEPNumber of days to keep releases. Releases older than this will be deleted. Defaults to 0 (delete all matching releases regardless of age).no0
DRY_RUNIf true, the action will only list the releases to be deleted without actually deleting them.nofalse
DELETE_TAGSIf true, delete each release's Git tag after deleting the release. Set to false to preserve tags.notrue
DELETE_DRAFT_RELEASES_ONLYIf true, only draft releases will be considered for deletion.nofalse
DELETE_PRERELEASES_ONLYIf true, only prereleases will be considered for deletion.nofalse
TARGET_BRANCH_PATTERNRegex pattern to match the target branch of a release's commit. Only releases whose associated commit is on a matching branch will be considered for deletion.no""
MAX_CONCURRENCYMaximum number of GitHub API cleanup operations to run at once. Defaults to 5 to avoid unbounded deletion fan-out.no5
namedescription
matched_countNumber of releases matching all deletion filters before retention rules are applied.
kept_countNumber of matching releases preserved by count, safety floor, or age rules.
delete_countNumber of releases selected for deletion, or that would be deleted during a dry run.
deleted_countNumber of releases actually deleted. This is 0 during dry runs.
deleted_tags_countNumber of Git tags actually deleted.
skipped_missing_tags_countNumber of release tags that were already absent when tag deletion was requested.
summary_jsonJSON summary containing counts and release/tag deletion candidates.