Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚙️ A GitHub Action to easily bump Homebrew formula on new release

License

NotificationsYou must be signed in to change notification settings

dynamodb-shell-brew-pr-bot/action-homebrew-bump-formula

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An action that wrapsbrew bump-formula-pr to ease the process of updating the formula on new project releases.

Works on Ubuntu and macOS runners.

Usage

One should use thePersonal Access Token fortoken input to this Action, not the defaultGITHUB_TOKEN, becausebrew bump-formula-pr creates a fork of the formula's tap repository (if needed) and then creates a pull request.

There are two ways to use this Action.

Standard mode

Use if you want to simply bump the formula, when a new release happens.

Listen for new tags in workflow:

on:push:tags:      -'*'

The Action will extract all needed informations by itself, you just need to specify the following step in your workflow:

-name:Update Homebrew formulauses:dawidd6/action-homebrew-bump-formula@v3with:# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopestoken:${{secrets.TOKEN}}# Optional, will commit with this user nameuser_name:name# Optional, will commit with this user emailuser_email:email@example.com# Optional, will create tap repo fork in organizationorg:ORG# Optional, use the origin repository instead of forkingno_fork:false# Optional, defaults to homebrew/coretap:USER/REPO# Formula name, requiredformula:FORMULA# Optional, will be determined automaticallytag:${{github.ref}}# Optional, will be determined automaticallyrevision:${{github.sha}}# Optional, if don't want to check for already open PRsforce:false# true

Livecheck mode

Iflivecheck input is set totrue, the Action will runbrew livecheck to check if any provided formulae are outdated or if tap contains any outdated formulae and then will runbrew bump-formula-pr on each of those formulae with proper arguments to bump them.

Might be a good idea to run this on schedule in your tap repo, so one gets automated PRs updating outdated formulae.

If there are no outdated formulae, the Action will just exit.

-name:Update Homebrew formulauses:dawidd6/action-homebrew-bump-formula@v3with:# Required, custom personal GitHub access token with only the 'public_repo' scope enabledtoken:${{secrets.CUSTOM_PERSONAL_ACCESS_TOKEN}}# Optional, will commit with this user nameuser_name:user_name# Optional, will commit with this user emailuser_email:email@example.com# Optional, will create tap repo fork in organizationorg:ORG# Bump all outdated formulae in this taptap:USER/REPO# Bump only these formulae if outdatedformula:FORMULA-1, FORMULA-2, FORMULA-3, ...# Optional, if don't want to check for already open PRsforce:false# true# Need to set this input if want to use `brew livecheck`livecheck:true

If onlytap input is provided, all formulae in given tap will be checked and bumped if needed.

Examples

About

⚙️ A GitHub Action to easily bump Homebrew formula on new release

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby100.0%

[8]ページ先頭

©2009-2025 Movatter.jp