Zum Inhalt springen

Plugin: updater-homebrew

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Updates a Homebrew formula with the new release URL and checksum. Use it when SemRel publishes tarballs that also need to be reflected in a Homebrew tap.

Terminal window
go install github.com/SemRels/updater-homebrew@latest

Each plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.

version: 1
plugins:
- name: updater-homebrew
path: updater-homebrew
args:
formula_file: Formula/semrel.rb
url_template: 'https://github.com/SemRels/semrel/archive/refs/tags/v{{ .NextVersion }}.tar.gz'
sha256: '${{ env.RELEASE_SHA256 }}'
NameRequiredDefaultDescription
SEMREL_PLUGIN_FORMULA_FILEyesHomebrew formula file to update.
SEMREL_PLUGIN_URL_TEMPLATEnoplugin-definedTemplate used to build the download URL for the new release.
SEMREL_PLUGIN_SHA256noChecksum to write into the formula.
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_TAG_NAME
  • SEMREL_DRY_RUN

For a 1.4.0 release, the updater can rewrite the formula URL to the v1.4.0 archive and replace the sha256 value with the supplied checksum.