The Github tools are cool, but mostly I just wanted a quicker way to confirm that my jobs had run successfully, rather than go to the web browser.
It was pretty easy to construct a command to make it a one liner, but first, the github cli tools need to be installed, and the jq utility.
Once thats setup when a git push has just been done, then this command should automatically watch the job.
gh run watch $(gh run list -L 1 --json databaseId | jq ".[].databaseId")
To make an alias with bash is as simple as:
alias ghwatch='gh run watch $(gh run list -L 1 --json databaseId | jq ".[].databaseId")'
And it still gives results even after the job is completed.
Run build image (22233523250) has already completed with 'success'