![]() |
![]()
| ![]() |
![]()
NAMEgh-run-view - View a summary of a workflow run SYNOPSISgh run view [<run-id>] [flags] DESCRIPTIONView a summary of a workflow run. This command does not support authenticating via fine grained PATs as it is not currently possible to create a PAT with the checks:read permission. Due to platform limitations, gh may not always be able to associate log lines with a particular step in a job. In this case, the step name in the log output will be replaced with UNKNOWN STEP. OPTIONS
OPTIONS INHERITED FROM PARENT COMMANDS
JSON FIELDSattempt, conclusion, createdAt, databaseId, displayTitle, event, headBranch, headSha, jobs, name, number, startedAt, status, updatedAt, url, workflowDatabaseId, workflowName EXIT CODES0: Successful execution 1: Error 2: Command canceled 4: Authentication required NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. EXAMPLE# Interactively select a run to view, optionally selecting a single job $ gh run view # View a specific run $ gh run view 12345 # View a specific run with specific attempt number $ gh run view 12345 --attempt 3 # View a specific job within a run $ gh run view --job 456789 # View the full log for a specific job $ gh run view --log --job 456789 # Exit non-zero if a run failed $ gh run view 0451 --exit-status && echo "run pending or passed" SEE ALSOgh-run(1)
|