ivangreene / homebrew-keymap

keymap Homebrew tap
0 stars 0 forks source link

How to bump the version automatically? #3

Closed ivangreene closed 5 months ago

ivangreene commented 5 months ago

Put this into ~/.gitconfig: https://github.com/Homebrew/legacy-homebrew/issues/34363#issuecomment-63934568

[url "git@github.com:"]
    insteadOf = "https://github.com/"

And then run:

brew bump-formula-pr keymap --version $VERSION --no-fork --no-browse

After getting the latest VERSION with

brew livecheck keymap

The bump-formula-pr will fail at the last step (opening the PR with GH api) due to missing GitHub credentials, but no need for those, it will still create the branch and push it to the ssh origin. Seems like brew doesn't support working with ssh credentials a lot, hence the override of the url in gitconfig