Someone pushed a "typo fix" to the prices, and the run went red: the pipeline caught a mistake before a customer did.
A step fails when its command exits with a non-zero code. test.sh ends with exit 1 when a check fails.
New command
gh run view
A run's jobs. For a failed job, each step: ✓, X, or - (didn't run).
Usagegh run view run-id
New command
gh run view --log-failed
Only the log of the steps that failed: the job, the step, then what the step printed.
Usagegh run view run-id --log-failed
text
learner@devbox:~/shop$ gh run view 19440000048 --log-failed
…
test Run ./test.sh 2026-11-20T08:15:17.0120280Z ok: slime costs 5 ← the step's own output
…
test Run ./test.sh 2026-11-20T08:15:17.0210490Z ##[error]Process completed with exit code 1.Don't read it all: look for the line that says what failed (FAIL, Error).
Objectives
- Which step failed?
- Which monster's price is wrong?
- Fix the price and get a green run.