`hub` is not available on GitHub actions
Hi,
Between august and today, hub has disappeared from actions/checkout@v2. My previously-working actions now ends with "hub: command not found". It's not available on actions/checkout@v3 or actions/checkout@v4 either.
https://github.com/mislav/hub#github-actions seems not true anymore.
Thanks for letting me know. I've discovered this: https://github.com/actions/runner-images/issues/8362
It doesn't have anything to do with actions/checkout version. The CLI tool has been removed from the runners themselves. The workaround is to migrate to the gh (GitHub CLI) utility, or to download a hub binary manually via curl + tar. I will try to update the documentation.
Also, this might work: https://github.com/marketplace/actions/setup-hub
As a quick fix, I added sudo apt install hub just before its usage. I'll take a look at actions/setup-hub which looks like a cleaner solution. Thank you for the tips.