Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete Maven artifacts from GitHub Packages #51

Merged
merged 6 commits into from
Oct 25, 2024

Conversation

MykytaPimonovTD
Copy link
Contributor

Currently, many non-release artifacts in Pingh's GitHub Packages are obsolete and no longer in use.

This changeset introduces a GitHub Actions workflow to automate the removal of these obsolete non-release artifacts from GitHub Packages.

An artifact is considered non-releasable if it includes the word “SNAPSHOT” in its version name. The workflow is scheduled to run daily at midnight. The removal task retains the five most recent non-release artifacts.

The artifact removal process follows these steps:

  1. Retrieves the names of packages created from this repository.
  2. For each package published from this repository, initiates a separate job to remove obsolete artifacts.

Additional details:

  1. Artifacts that are public and have been downloaded more than 5,000 times cannot be deleted. In such cases, contact GitHub Support for assistance.
  2. Up to 100 artifacts can be removed per run per package. If more than 100 obsolete artifacts exist, manually restart the workflow or wait for the next scheduled removal.

@MykytaPimonovTD MykytaPimonovTD self-assigned this Oct 25, 2024
@MykytaPimonovTD MykytaPimonovTD marked this pull request as ready for review October 25, 2024 10:15
scripts/request-package-names.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MykytaPimonovTD have a look at my comment. Otherwise, LGTM.

@MykytaPimonovTD MykytaPimonovTD merged commit e64d341 into master Oct 25, 2024
1 check passed
@MykytaPimonovTD MykytaPimonovTD deleted the auto-removal-of-old-snapshots branch October 25, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants