Linux command
gh-run 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List workflow runs
gh run list
View run details
gh run view [run-id]
Watch a run
gh run watch [run-id]
Download artifacts
gh run download [run-id]
Rerun failed jobs
gh run rerun [run-id] --failed
说明
gh run manages GitHub Actions workflow runs from the command line. It provides visibility into CI/CD execution including logs, status, and artifacts without visiting github.com. The watch command provides live progress updates for running workflows. Download retrieves artifacts produced by workflows, and rerun enables retriggering workflows with options for full or partial reruns.
参数
- list
- List recent workflow runs.
- view _RUN-ID_
- View run details.
- watch _RUN-ID_
- Watch run progress live.
- download _RUN-ID_
- Download run artifacts.
- rerun _RUN-ID_
- Rerun a workflow run.
- cancel _RUN-ID_
- Cancel a running workflow.
- --workflow _NAME_
- Filter by workflow name.
- --branch _BRANCH_
- Filter by branch.
- --failed
- Only rerun failed jobs.
- --help
- Display help information.
FAQ
What is the gh-run command used for?
gh run manages GitHub Actions workflow runs from the command line. It provides visibility into CI/CD execution including logs, status, and artifacts without visiting github.com. The watch command provides live progress updates for running workflows. Download retrieves artifacts produced by workflows, and rerun enables retriggering workflows with options for full or partial reruns.
How do I run a basic gh-run example?
Run `gh run list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in gh-run?
List recent workflow runs.