Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate homebrew releases #1205

Open
chenrui333 opened this issue Sep 19, 2023 · 4 comments · Fixed by #1227
Open

Automate homebrew releases #1205

chenrui333 opened this issue Sep 19, 2023 · 4 comments · Fixed by #1227
Assignees
Labels
automated release Tasks related to release process automation maintenance CI, unit tests, compilation

Comments

@chenrui333
Copy link

With either bump-homebrew-formula-action or action-homebrew-bump-formula into the release pipeline, the project can automate the homebrew releases. Thanks!

/label feature

@art-divin
Copy link
Collaborator

art-divin commented Sep 19, 2023

Hello @chenrui333 ,

sounds amazing 💯

Could you please verify, the only way to actually test this, is to merge such MR (with updates to yml files) and see during the next release, correct?

Thank you 🙏🏻

@art-divin art-divin self-assigned this Nov 18, 2023
@art-divin art-divin added the maintenance CI, unit tests, compilation label Nov 18, 2023
@art-divin
Copy link
Collaborator

art-divin commented Nov 18, 2023

👋🏻 hey @krzysztofzablocki ,

I would need you to setup a GitHub secret for this action, the token should be classic and include the scopes: repo & workflow. You can name it HOMEBREW_COMMITTER_TOKEN.

This is needed for this action to create a fork and PR to homebrew-core. For now I am creating a manual workflow configuration, but later I'll move it to automated one, along with the whole release to be automated via GH action.

@krzysztofzablocki
Copy link
Owner

done

@art-divin art-divin added the automated release Tasks related to release process automation label Dec 26, 2023
@art-divin
Copy link
Collaborator

👋🏻 Hey,

I have tried to trigger the release.yml manually, and the result has shown HTTP 401:

Run mislav/bump-homebrew-formula-action@v3
  with:
    formula-name: sourcery
    tag-name: v.2.1.3
    homebrew-tap: Homebrew/homebrew-core
    commit-message: {{formulaName}} {{version}}
  
  Created by https://github.com/mislav/bump-homebrew-formula-action
  
  env:
    COMMITTER_TOKEN: ***
Error: Error: unexpected HTTP 401 response

I cannot figure out anything related to homebrew so I really need some collaboration on this one 🤝

Any hints are welcome though 👍🏻

@art-divin art-divin reopened this Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated release Tasks related to release process automation maintenance CI, unit tests, compilation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants