hyperledger / besu

An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
https://www.hyperledger.org/projects/besu
Apache License 2.0
1.44k stars 765 forks source link

automate creation of homebrew release #7132

Closed macfarla closed 3 weeks ago

macfarla commented 1 month ago

homebrew release gets created after besu release artifact is available. Think some more parts of this can be automated - maybe GHA

homebrew repo - https://github.com/hyperledger/homebrew-besu

instructions for how to create the release - git checkout the homebrew-besu repo git checkout branch 24.5.2 sh updateBesu <24.5.2>

^ this updates besu.rb file create a PR with this update git add besu.rb git commit git push

cdivitotawela commented 1 month ago

It is possible to add a GitHub workflow to commit the changes but bypassing the DCO is the challenge. I could configure bot user and email address for the commit. What would be the Hyperledger requirement using a bot commit.

cdivitotawela commented 1 month ago

In order to fully automate the Homebrew release triggered at the end of the Besu release, it requires a GitHub app in Hyperledger GitHub org with permission to create PR. Not sure whether is it feasible to request a GitHub app with permission to enable this automation.

cdivitotawela commented 3 weeks ago

Will create a GitHub workflow which can trigger on-demand, that would create a new branch and update the version. Release manager be able to run the job to create the branch. Creating PR from GITHUB_TOKEN is not possible so user need to create the PR from the branch.

cdivitotawela commented 3 weeks ago

Pull request https://github.com/hyperledger/homebrew-besu/pull/126