跳到正文
Skillpedia
部署与云(DevOps)21k · #10363

watch-github-actions

它能做什么

这项技能让 AI 查看 GitHub Actions 工作流运行的状态,并跟踪某次运行直到结束。适合想知道构建或测试是否通过的人。

适用场景

  • ✓你想知道你分支上最新的构建或测试运行是否通过的时候。
  • ✓拉取请求的检查正在运行,你想跟踪直到结束的时候。
  • ✓某个工作流失败,你想阅读失败作业的日志的时候。

技能链接

https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/watch-github-actions/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/watch-github-actions/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我分支上的测试是否通过;如果失败,请把日志给我看。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 使用 gh 命令行工具列出最近的运行、监视某次运行,或查看某个分支或拉取请求的作业详情和日志。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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:

gh run list --branch "$(git branch --show-current)"

List all recent runs:

gh run list

Watch a Run in Real Time

Watch a workflow run until it completes:

gh run watch

Watch a specific run:

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:

gh run view <run-id>

View with full log output:

gh run view <run-id> --log

View a failed job's log:

gh run view <run-id> --log-failed

Check Runs for a Specific Branch

Current branch:

gh run list --branch "$(git branch --show-current)"

Specific branch:

gh run list --branch main
gh run list --branch feature-branch

Check Runs for a PR

List workflow runs associated with a PR:

# 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:

gh pr checks <pr-number>

List Recent Runs

List runs for the current project:

gh run list

Filter by status:

gh run list --status failure
gh run list --status success
gh run list --status in_progress

Filter by workflow:

gh run list --workflow "CI"

JSON output for scripting:

gh run list --json databaseId,status,headBranch,url --jq '.[] | {id: .databaseId, status: .status, branch: .headBranch, url: .url}'

View Job Logs

For tmachine Kubernetes conformance failures, inspect the e2e-results-conformance-sandbox-ubuntu-k3s-* artifact. Its diagnostics/ holds the K3s report with Agent Sandbox controller state, leader leases, events, and current and previous controller logs. The k3s installers check reconciliation after guest boot with a temporary scheduling-gated Sandbox probe, so a failed probe fails provisioning before any test runs. Distinguish a failed controller probe from a failed conformance scenario; gateway connectivity and controller Deployment availability do not prove reconciliation works.

For the e2e-suites lane (.github/workflows/e2e-suites.yml), the last lines of the job log give the runner's result: PASS, FAIL (exit 1) after the end of the nextest log (which names the failed tests), or ERROR (exit 2) with the step that broke. FAIL and ERROR also appear as annotations on the run's summary page. Then inspect the e2e-results-<family>-<package>-<environment>-<installer> artifact, which holds junit.xml, nextest.log and, after a failure, the guest's diagnostics/.

Pre-release temporarily omits Codex Security from its Security Scan job. Release uses the passing prerelease qualification result. Other scanners and qualification gates still run. Use the standalone Codex Security Release Qualification workflow for manual investigation.

For Codex Security, an exit code of 2 with partial coverage is an incomplete scan, not a HIGH/CRITICAL threshold failure. Check the execution diagnostics in the job summary and the codex-security-diagnostics-<run>-<attempt> artifact on scan failure. It contains fixed status values, aggregate coverage counts, and disk space before, after, and the minimum sampled every five seconds. Missing coverage or manifest documents indicate no readable final report was available; deferred items or surfaces needing follow-up can explain partial coverage. Sampling cannot rule out a disk spike between samples.

Artifacts and logs in this public repository are public. Never upload the raw scan directory, report.md, coverage.json, findings, agent state, or scanner logs. Coverage reasons and notes are free text and may disclose vulnerabilities. The public diagnostic intentionally omits them; detailed review needs an approved private destination. Helpers must come from the workflow revision, not from the candidate under scan.

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. Dire

常见问题

我需要做什么设置吗?

需要已登录 GitHub 的 gh 工具,以及一个关联了 GitHub 仓库的文件夹。

我不用回来检查,它也能跟踪运行吗?

能。它可以实时监视某次运行,直到成功、失败或被取消。

它能检查拉取请求的运行吗?

能。它会找到拉取请求对应的分支,并列出该分支的运行记录。

详情

作者的原始描述

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.

repo: NVIDIA/OpenShell

热度

GitHub 星标
21k
排名
#10363
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能