Skip to content

Shorten Actions packaging retention so caches stop blocking the next release - #23

Merged
cursor[bot] merged 1 commit into
masterfrom
cursor/actions-retention-prune-c2c5
Aug 18, 2026
Merged

Shorten Actions packaging retention so caches stop blocking the next release#23
cursor[bot] merged 1 commit into
masterfrom
cursor/actions-retention-prune-c2c5

Conversation

@baseGame

Copy link
Copy Markdown
Collaborator

Summary

Repo Actions cache is already ~5.5 GB of 10 GB, mostly leftover rustc/cargo snapshots from old PRs and the v1.1.0 tag build. This change reclaims that space before packaging and stops new workflow artifacts from lingering.

.github/workflows/release.yml now exposes four workflow_dispatch parameters (same 1-day / keep-final defaults on v* tag pushes):

Input UI label Default
tenant_snapshot_retention_days 租户构建快照保留期(天) '1'
installer_artifact_retention_days 三端安装包 Artifact 保留期(天) '1'
initial_evidence_retention_days 初始发布证据保留期(天) '1'
keep_final_evidence 保持最终证据(GitHub Release 安装包,勿删) true

What is deleted (Actions storage only):

  • A new prune-storage job runs first (actions: write). Other jobs needs it.
  • All caches on refs/pull/*
  • Caches older than tenant_snapshot_retention_days (default 1 day)
  • Extra rust caches on master/main: keep only the newest rust cache per OS+job
  • Expired / leftover workflow artifacts (installers, evidence, other Actions artifacts)

What is never deleted:

  • GitHub Release download assets (DMG/DEB/RPM/MSI)
  • The published release is not drafted, the tag is not deleted, and assets are not expired
  • keep_final_evidence: true is the default and the prune job never calls the Releases API

Build jobs still restore rust/pnpm caches. tauri-apps/tauri-action still publishes installers only to the GitHub Release (uploadWorkflowArtifacts is left unset / false). Initial release evidence (run URL, platform list, checksums of that metadata) is uploaded with actions/upload-artifact and retention-days from initial_evidence_retention_days.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Build, CI, or release

Validation

  • Parsed .github/workflows/release.yml and syntax-checked the inline Node prune/evidence scripts

  • Did not run corepack pnpm quality / corepack pnpm test — this repo does not test workflow YAML, and no application code changed

  • Did not bump the version, retag, or change Windows ssh2 / Intel macOS packaging

  • corepack pnpm quality

  • corepack pnpm test

Screenshots or recordings

N/A — workflow YAML only. After merge, Actions → Release → Run workflow shows the four Chinese-labeled inputs.

Checklist

  • I kept the change focused.
  • I added or updated tests where needed.
  • I updated documentation for user-facing changes.
  • I checked that no sensitive data is included.
Open in Web Open in Cursor 

Expose the four packaging-pipeline retention inputs on workflow_dispatch, reclaim Actions cache/artifact quota before create-release, and keep GitHub Release installer assets.

Co-authored-by: Yukon <baseGame@users.noreply.github.com>
@baseGame
baseGame marked this pull request as ready for review August 18, 2026 13:43
@cursor
cursor Bot merged commit 24e4001 into master Aug 18, 2026
1 check failed
@cursor
cursor Bot deleted the cursor/actions-retention-prune-c2c5 branch August 18, 2026 13:44
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