Skip to content

ci(release): delete prereleases older than three months - #103

Open
florian-asche wants to merge 1 commit into
mainfrom
ci/cleanup-old-prereleases
Open

florian-asche wants to merge 1 commit into
mainfrom
ci/cleanup-old-prereleases

Conversation

@florian-asche

Copy link
Copy Markdown
Owner

What does this implement/fix?

Branch builds publish a prerelease named after the branch, and these pile up. A new workflow cleanup-prereleases.yml runs daily (and manually) and deletes every prerelease published more than three months ago, including its tag.

Not deleted:

  • rpi-imager-json, which is a prerelease too.
  • main, which is a prerelease as well and feeds the "PiCompose - development" entry of the imager JSON (scripts/generate-imager-json.py). Its publish date stays old while the builds update it, so it would otherwise be removed although it is in use.

A manual run has a dry-run input that only lists the candidates. Please run it once that way after the merge.

Types of changes

  • CI / workflow change — ci

Tested on

  • Hardware / image: none, syntax check only (yamllint). The workflow has not been run.
  • Result: n/a

Checklist

  • Shell scripts pass bash -n and workflow files are valid YAML.
  • README.md and docs/ match the change.
  • Breaking changes are described in breaking_changes.md.
  • I reviewed and understand every change in this PR (see AI policy).

🤖 Generated with Claude Code

A daily workflow removes prereleases and their tags after three months.
The main and rpi-imager-json releases are kept. A manual run supports a
dry run that only lists the candidates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant