mjcheetham/update-homebrew
Update a Homebrew Formula or Cask file with new version and bottle information.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| name | Package name | yes | — |
| type | Type of Homebrew package: 'formula' (default) or 'cask' | no | formula |
| version | Package version. Required if 'releaseRepo', 'releaseTag', and 'releaseAsset' are not specified. | no | — |
| releaseRepo | Repository from which to locate a release asset to compute the new package version. If not provided `GITHUB_REPOSITORY` (the current repository) is used as the default. | no | — |
| releaseTag | Tag for the release containing an asset from which to compute the new package verison. If not provided `GITHUB_REF` (the current ref) is used as the default. | no | — |
| releaseAsset | Regular expression to match release asset names for updating the package version. Must contain one capture group that captures the new package version number. If a named capture group 'version' exists that will be used, otherwise the first capture group (matches[1]) will be used. | no | — |
| url | Download asset URL. The following replacements will be made: {{version}} => full version string {{version.major}} => major version (x) {{version.major_minor}} => major and minor version (x.y) {{version.major_minor_patch}} => major, minor and patch version (x.y.z) | no | — |
| sha256 | Download asset SHA-256 hash. If omitted the hash will be calculated. | no | — |
| tap | Tap to update. Can be in the form '<org>/homebrew-<name>' or '<org>/<name>'. Defaults to 'homebrew/core'. | no | homebrew/core |
| branch | Tap branch to target. Defaults to the default branch. | no | — |
| token | Access token used to access the Tap, submit pull requests or push commits. | yes | — |
| message | Commit message template for the update. The following replacements will be made: {{name}} => name of the package {{file}} => file path of the package definition {{type}} => type of package: 'Formula' or 'Cask' {{version}} => full version string {{version.major}} => major version (x) {{version.major_minor}} => major and minor version (x.y) {{version.major_minor_patch}} => major, minor and patch version (x.y.z) | no | {{name}}: update to {{version}} |
| alwaysUsePullRequest | Set to 'true' to always create a pull request rather than committing directly to the Tap's branch, even if it's possible. Defaults to false. | no | false |
Outputs
no outputs