C.W.K.
Stream
Lesson 11 of 12 · published

Workflow run

~11 min · runs, logs, debugging

Level 0Apprentice
0 XP0/101 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

Actions tab 에서 실제 보는 것

각 trigger 는 run 을 만들어. Run 은 고유 ID, job 목록, step 별 log, artifact, 최종 결론 (success, failure, cancelled, skipped, timed_out, action_required, neutral) 가져.

Run 읽기

  1. Summary view — workflow graph, 각 job 이 node, needs: edge 그려져. Job 클릭해서 step 봐.
  2. Step log — step 별 전체 stdout/stderr. 상단 검색 박스로 모든 step 에 grep.
  3. Artifactupload-artifact 로 업로드된 파일. 로컬 디버깅 위해 다운로드.
  4. Re-run — 모든 job, 실패한 job 만, 또는 debug logging 활성화로 re-run.
  5. Cancel — in-progress run 중단.

Debug logging

Repo 또는 workflow secret 설정:

  • ACTIONS_RUNNER_DEBUG = true — verbose runner.
  • ACTIONS_STEP_DEBUG = true — verbose step.

또는 run UI 에서 'Re-run with debug logging' 클릭. Log 가 5-10 배 길어지지만 runner 가 하는 모든 API 호출을 보여줘.

Code

CLI 에서 workflow run 관찰·bash
# Show the most recent run of every workflow
gh run list --limit 5

# Watch a specific run live (auto-tails until completion)
gh run watch <run-id>

# Show the failed step's logs only
gh run view <run-id> --log-failed

# Re-run only the failed jobs
gh run rerun <run-id> --failed

# Cancel an in-progress run
gh run cancel <run-id>

External links

Exercise

Step 하나를 의도적으로 깨는 commit push (예: test script 에 exit 1). 터미널에서 gh run watch 로 fail 까지. 그 다음 gh run view --log-failed 로 실패 찾기. 고치고 gh run rerun --failed 로 re-run.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.