Git Tips Slides
PageUp x2: previous · PageDown x2: next · Home: index

GitHub: Play a sound when a CI job is finished

Sometimes I need to wait until a GitHub CI job is finished. Waiting is not very productive, so I do other things while waiting.

When the job is done, I want to get notified. This can be done like this:

gh run watch; music

gh run watch gives you a list of jobs, and you can select one. When it is finished, the next command runs. Use whatever command you want for that. For me, music is a small script that plays a song I like.