mdogan / homebrew-zulu

Homebrew Casks for Azul Zulu OpenJDK & Mission Control
The Unlicense
226 stars 25 forks source link

Automatic cask/action update application #19

Closed JakeWharton closed 2 years ago

JakeWharton commented 2 years ago

Queries the Azul Zulu API for the latest JDK versions and writes out Cask definition, GitHub Action workflow, and README.md. Also adds uninstall step to GitHub Action workflows.

I'm not sure how you're keeping things up to date, but adding JDK 18 (#17) was a manual effort that was more pain than expected. This app automatically updates JDKs to their latest version as well as adds new major JDK versions. Next steps would be to run this nightly via a scheduled GitHub Action and automatically maintain a PR when changes are available.

Feedback welcome!

JakeWharton commented 2 years ago

This results in adding JDK 9 & 10 which were previously unavailable. It also adds a GitHub Action workflow for 12 & 14 which were missing. And finally it updates JDK 7 & 11 with new patch versions.

mdogan commented 2 years ago

@JakeWharton: This is really awesome! I was fetching the Azul api via script and applying the changes manually.

Btw this may trigger a redundant update for old JDKs, because of the version format change, but I think it's worth it.

JakeWharton commented 2 years ago

I'll attempt to match the version formatting real quick, too.

JakeWharton commented 2 years ago

Okay I was able to get 13-18 to have their versions match. Since 9 & 10 are new and 7 & 11 have real updates this means only 8 & 12 will have meaningless updates caused by the format change.