The team has had CI for a while. Each push started a run, which ends with ✓ (passed) or X (failed or cancelled). One still going shows *.
New command
gh run list
The latest runs, newest first: their status, the commit message (TITLE), and each run's ID.
Usagegh run list
text
learner@devbox:~/shop$ gh run list
STATUS TITLE WORKFLOW BRANCH EVENT ID ELAPSED AGE
✓ Put the goblin price back CI main push 19440000085 14s about 45 minutes ago
…New command
gh run watch
Follows a run until it ends, then shows how each step went. Without an ID, gh asks you to pick one.
Usagegh run watch run-id
Push a change, find its run's ID, and watch it:
bash
echo "Open 9 to 5." >> README.md
git commit -am "Add opening hours" && git push
gh run list
gh run watch 19440000122Use the ID gh run list shows you: each run has its own.
Objectives
- Which commit's run failed?
- Push a change and watch its run.