Skip to main content

watch-github-actions

Watch and monitor GitHub Actions workflow runs using the gh CLI. Use when the user wants to check workflow status, watch a running workflow, view CI/CD jobs, or monitor build progress. Trigger keywords - watch pipeline, pipeline status, CI status, check build, monitor CI, view pipeline, pipeline progress, workflow status, actions status.

소스 정보

저장소
NVIDIA/OpenShell
최근 소스 활동
2026년 10월 5일 14:00
감지된 SKILL.md 언어
영어
스타
14,949
포크
1,703

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
watch-github-actions
description
Watch and monitor GitHub Actions workflow runs using the gh CLI. Use when the user wants to check workflow status, watch a running workflow, view CI/CD jobs, or monitor build progress. Trigger keywords - watch pipeline, pipeline status, CI status, check build, monitor CI, view pipeline, pipeline progress, workflow status, actions status.
metadata
{"internal":true}
# Watch GitHub Actions Monitor GitHub Actions workflow runs using the `gh` CLI. ## Prerequisites - The `gh` CLI must be authenticated (`gh auth status`) - You must be in a git repository with a GitHub remote ## Quick Status Check List recent workflow runs for the current branch: ```bash gh run list --branch "$(git branch --show-current)" ``` List all recent runs: ```bash gh run list ``` ## Watch a Run in Real Time Watch a workflow run until it completes: ```bash gh run watch ``` Watch a specific run: ```bash gh run watch <run-id> ``` This will continuously update the status until the run finishes (success, failure, or cancelled). ## View Run Details View a specific run with job details: ```bash gh run view <run-id> ``` View with full log output: ```bash gh run view <run-id> --log ``` View a failed job's log: ```bash gh run view <run-id> --log-failed ``` ## Check Runs for a Specific Branch Current branch: ```bash gh run list --branch "$(git branch --show-current)" ``` Specific branch: ```bash gh run list --branch main gh run list --branch feature-branch ``` ## Check Runs for a PR List workflow runs associated with a PR: ```bash # Get the head branch of the PR, then list runs BRANCH=$(gh pr view <pr-number> --json headRefName --jq '.headRefName') gh run list --branch "$BRANCH" ``` Or view the checks directly on the PR: ```bash gh pr checks <pr-number> ``` ## List Recent Runs List runs for the current project: ```bash gh run list ``` Filter by status: ```bash gh run list --status failure gh run list --status success gh run list --status in_progress ``` Filter by workflow: ```bash gh run list --workflow "CI" ``` JSON output for scripting: ```bash gh run list --json databaseId,status,headBranch,url --jq '.[] | {id: .databaseId, status: .status, branch: .headBranch, url: .url}' ``` ## View Job Logs `setup-nix` retries development-shell preparation once when `prepare-shell` is enabled. Inspect both attempts in the job log; `setup-rust` assumes the shell has already been prepared. Cargo, lint, and test commands are not retried. Direct Nix builds and app dependency preparation also retry once; apps run once after preparation succeeds. Skipped dependent E2E suites indicate blocked coverage. For `Trivy Changes`, inspect the `Resolve PR baseline` step for the base and head SHAs. PR runs compare the tested merge commit with its first parent; change detection and scans must use the same pair. On reruns, do not substitute the current `main` tip or the event's older PR base SHA. Merge groups and manual runs use their explicit baseline. Findings are reported by `Reject new high or critical findings`; distinguish those from scanner failures. For `Protobuf Compatibility`, check the logged train and comparison baseline. Branch Checks compares the prospective merge tree with its target; Release Tag compares the tagged candidate with the previous stable release. Both use the shared `check-protobuf-compatibility` action with `nix run .#check-protobuf-compatibility -- <ref>`. During `0.x`, a minor train permits compatibility findings as warnings; a patch train or no active train rejects them. Compare the current train's version with the latest stable release; commit messages are irrelevant. Compilation, baseline, and tool errors remain fatal. The `protobuf_compatibility` suite participates in the `release-tag-v1` qualification profile. Both tagged pre-release and stable publication require this profile to pass. Failed, cancelled, or skipped suites block publication; build artifacts and qualification evidence remain in Actions storage for diagnosis. Source-SHA images are staging inputs for qualification. Snap builds run in parallel with qualification, but tagged stable Store uploads consume those built artifacts only after qualification passes. View logs for a specific run: ```bash gh run view <run-id> --log ``` View only failed job logs: ```bash gh run view <run-id> --log-failed ``` ## Wait for Run Completion (Scripting) Watch and wait for a run to complete: ```bash RUN_ID=$(gh run list --branch "$(git branch --show-current)" --limit 1 --json databaseId --jq '.[0].databaseId') gh run watch "$RUN_ID" --exit-status echo "Run finished with exit code: $?" ``` ## Open Run in Browser Open the latest run in your default browser: ```bash gh run view --web ``` Open a specific run: ```bash gh run view <run-id> --web ``` ## Rerun Failed Jobs Rerun all failed jobs in a run: ```bash gh run rerun <run-id> --failed ``` Rerun an entire run: ```bash gh run rerun <run-id> ``` ## Useful Commands Reference | Command | Description | | ----------------------------------- | --------------------------------------- | | `gh run list` | List recent workflow runs | | `gh run list --branch <branch>` | List runs for a specific branch | | `gh run list --status failure` | List failed runs | | `gh run watch` | Watch latest run until completion | | `gh run watch <run-id>` | Watch a specific run until completion | | `gh run view <run-id>` | View run details and job list | | `gh run view <run-id> --log` | View full run logs | | `gh run view <run-id> --log-failed` | View only failed job logs | | `gh run view --web` | Open run in browser | | `gh run rerun <run-id>` | Rerun a workflow run | | `gh run rerun <run-id> --failed` | Rerun only failed jobs | | `gh run cancel <run-id>` | Cancel a running workflow | | `gh pr checks <pr-number>` | View PR check statuses | ## Common Flags | Flag | Description | | ------------------- | ---------------------------------------------- | | `-b, --branch` | Specify branch (default: current branch) | | `--status` | Filter by status (queued, in_progress, etc.) | | `--workflow` | Filter by workflow name | | `-L, --limit` | Maximum number of runs to list | | `-w, --web` | Open in browser | | `--json` | Output as JSON with specified fields | | `--jq` | Filter JSON output with jq expression | ## Example Workflow 1. Push your changes and create/update a PR 2. Watch the workflow run: ```bash gh run watch ``` 3. If a job fails, view the failed logs: ```bash gh run view <run-id> --log-failed ``` 4. Rerun the failed jobs if needed: ```bash gh run rerun <run-id> --failed ```
GitHub에서 보기