Skip to content

fix(release): Enhance release workflow by adding a step to free disk space before publish#267

Merged
victorvhs017 merged 1 commit into
mainfrom
fix/free-disk-before-publish
Jun 17, 2026
Merged

fix(release): Enhance release workflow by adding a step to free disk space before publish#267
victorvhs017 merged 1 commit into
mainfrom
fix/free-disk-before-publish

Conversation

@victorvhs017

Copy link
Copy Markdown
Contributor

Description 📣

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

…ublishing packages. This step ensures sufficient storage by removing unnecessary directories, improving the overall build process efficiency.
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cli-267-fix-release-enhance-release-workflow-by-adding-a-step-to-free

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@greptile-apps

greptile-apps Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a disk-space cleanup step to the goreleaser job, placed immediately before the S3 publish step. The step removes large, unused GitHub-hosted runner directories (.NET, Android SDK, GHC, and CodeQL) to free space needed by upload_to_s3.sh, which syncs the full APK repo history before rebuilding the index.

  • The four directories removed (/usr/share/dotnet, /usr/local/lib/android, /opt/ghc, /opt/hostedtoolcache/CodeQL) are not referenced by any step in the goreleaser job; all publishing tools (mkrepo, AWS CLI v2, deb-s3) are installed in separate locations and are unaffected.
  • The || true guard and the same if: condition as the publish step are both correct: cleanup is skipped on dry-run builds and will not block the job if a directory is absent.

Confidence Score: 5/5

The change only removes well-known, large GitHub-hosted runner directories that are unused by this job, and does so only on non-dry-run builds immediately before publishing. Safe to merge.

The step is narrow, well-conditioned, and guarded with || true. None of the removed directories are touched by any other step in the goreleaser job, and all publish-time tools live outside those paths.

No files require special attention.

Important Files Changed

Filename Overview
.github/workflows/release_build_infisical_cli.yml Adds a "Free disk space before publish" step that removes unused toolchains (dotnet, Android SDK, GHC, CodeQL) immediately before the S3 publish step; the removed directories are not used by any step in this job.

Reviews (1): Last reviewed commit: "Enhance release workflow by adding a ste..." | Re-trigger Greptile

@victorvhs017 victorvhs017 requested a review from PrestigePvP June 17, 2026 00:27
@victorvhs017 victorvhs017 merged commit 6220095 into main Jun 17, 2026
16 checks passed
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