box icon indicating copy to clipboard operation
box copied to clipboard

Automatically update Brew formula

Open alexander-schranz opened this issue 4 years ago β€’ 5 comments

Not sure but it looks for me the brew formula is outdated or gets an old version when running:

brew tap humbug/box
brew install box

# ==> Installing box from humbug/box
# ==> Downloading https://github.com/humbug/box/releases/download/3.8.4/box.phar
# Already downloaded: /Users/alexanderschranz/Library/Caches/Homebrew/downloads/ec5bbcd3526d2ea2e58d717a7852b2124707204078a1ddbf350abf733a5fa605--box.phar🍺  /usr/local/Cellar/box/3.8.4: 3 files, 1.8MB, built in 2 seconds
box --version
# Box version 3.8.4@120b0a3 2019-12-13 17:22:43 UTC

alexander-schranz avatar Jan 05 '21 15:01 alexander-schranz

Seems like the version is hardcoded here: https://github.com/humbug/homebrew-box/pull/5

alexander-schranz avatar Jan 05 '21 15:01 alexander-schranz

Indeed. I was using a tool to try to keep it up to date but it was not working due to the hook being triggered too early (before the artefact was built) and was somehow removed when migrating to GitHub Actions. Hence it needs to be updated manually which I rarely do...

theofidry avatar Jan 07 '21 14:01 theofidry

@theofidry maybe a github action could be used in sulu example have this github action in our main repo:

https://github.com/sulu/sulu/blob/master/.github/workflows/trigger-styleguide-build.yaml

Which will trigger a workflow in another repository:

https://github.com/sulu/sulu-javascript-docs/blob/master/.github/workflows/update-documentation.yaml#L14

Another way would be a github action cronjob (schedule) which maybe runs every day once to check if there is a new version and if it is it will push the updated formula.

alexander-schranz avatar Jan 07 '21 15:01 alexander-schranz

I would fine with either solution πŸ‘

theofidry avatar Jan 07 '21 15:01 theofidry

@theofidry Hope I will find some time soon to create a PR. Thank you for maintaining this Project πŸ™

alexander-schranz avatar Jan 13 '21 13:01 alexander-schranz

Should be implemented via #832. Not sure yet that it works!

theofidry avatar Feb 01 '23 08:02 theofidry