Skip to content

Add automatic homebrew formula update to release workflow#383

Merged
adrienaury merged 4 commits intomainfrom
copilot/fix-eaf5bb34-dc82-4382-aeab-91336f557bf5
Aug 27, 2025
Merged

Add automatic homebrew formula update to release workflow#383
adrienaury merged 4 commits intomainfrom
copilot/fix-eaf5bb34-dc82-4382-aeab-91336f557bf5

Conversation

Copy link
Contributor

Copilot AI commented Aug 25, 2025

This PR adds automatic homebrew formula updates to the GitHub Actions release workflow, eliminating the need for manual formula maintenance when new versions are released.

Changes

Added homebrew job to .github/workflows/release.yml:

  • Runs after the build job completes successfully
  • Only triggers for release tags (skips pre-release tags containing -)
  • Uses mislav/bump-homebrew-formula-action@v3 to automatically update the formula
  • Configured for the CGI-FR/homebrew-lino repository
  • Uses the correct download URL pattern matching existing releases: LINO_{version}_darwin_amd64.tar.gz

Updated CHANGELOG.md to document the new automation feature.

How it works

When a release tag (e.g., v3.4.0) is pushed to the repository:

  1. The existing build process runs and publishes release artifacts
  2. The new homebrew job extracts version information from the git tag
  3. The action automatically updates the homebrew formula with:
    • New version number
    • Updated download URL
    • New SHA256 checksum
  4. A commit is created in the CGI-FR/homebrew-lino repository

Configuration Required

Repository maintainers need to add a COMMITTER_TOKEN secret to the repository settings. This should be a GitHub personal access token with write permissions to the CGI-FR/homebrew-lino repository.

Benefits

  • Eliminates manual work: No more manual formula updates after each release
  • Reduces errors: Automated process prevents typos in URLs, versions, or checksums
  • Faster availability: Homebrew formula is updated immediately when releases are published
  • Consistent process: Same reliable automation for every release

This implementation follows GitHub Actions best practices and uses the well-established mislav/bump-homebrew-formula-action which is widely used across the ecosystem for this exact purpose.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add a step to the GitHub Action release workflow to bump the lino homebrew formula. The formula is situated in this repository : @CGI-FR/homebrew-lino Here is an example to adapt : ``` homebrew: name: Bump Homebrew formula needs: build ... Add automatic homebrew formula update to release workflow Aug 25, 2025
Copilot AI requested a review from adrienaury August 25, 2025 08:36
@adrienaury adrienaury marked this pull request as ready for review August 25, 2025 12:32
@adrienaury adrienaury merged commit f58cdf1 into main Aug 27, 2025
2 checks passed
@adrienaury adrienaury deleted the copilot/fix-eaf5bb34-dc82-4382-aeab-91336f557bf5 branch August 27, 2025 07: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