← Back to list

github-actions-runs
by asimihsan
Dot files for my machines
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: github-actions-runs description: Automate and inspect GitHub Actions runs with the asim-utilities Python library/CLI. Use when triggering workflows, listing recent runs or failures, waiting/canceling runs on job failure, or downloading run logs and artifacts. Covers CLI usage, output conventions, and repo layout for ~/workplace/asim-utilities.
GitHub Actions Runs
Overview
Use the asim-utilities repo to manage GitHub Actions runs via a typed Python library and the gh-actions-runs CLI. This skill covers common workflows (trigger/watch, list failures, download logs/artifacts), configuration, and where to modify the code.
Before using the CLI in a session, run gh-actions-runs --help once to refresh flags and subcommands.
Quick start (CLI)
- Set auth:
GITHUB_TOKENorGH_TOKENin the environment (or rely ongh auth token). - Run against current repo (auto-detects
origin), or pass--repo owner/name. - Default output root:
~/.cache/gh-actions-runs(override with--output).
Common commands:
- Trigger + wait for run ID:
gh-actions-runs trigger --workflow CI --ref main --wait
- Watch a run, cancel on first failure, download logs/artifacts:
gh-actions-runs watch --workflow CI --ref main
- List recent runs:
gh-actions-runs list --limit 20
- List recent failures:
gh-actions-runs failures --limit 10
- Download logs + artifacts for a run:
gh-actions-runs download 123456
- Download latest completed run for a PR (number or URL):
gh-actions-runs pr-download --repo owner/name --pr 1234gh-actions-runs pr-download --pr https://github.com/owner/repo/pull/1234
Workflow: Trigger + watch
- Dispatch workflow (
triggerorwatchwithout--run-id). - Poll for the run ID based on creation time + branch.
- Poll run + jobs; if any job fails and
--no-cancel-on-failureis not set, cancel the run. - Wait for completion, then download logs and artifacts into
run-<id>/.
Workflow: Inspect recent runs
- Use
listfor recent runs; add--workflowor--branchfilters. - Use
failuresto filter for failed conclusions. - Use
runandjobsto inspect a single run in detail.
Output and formats
--format human(default): tables and readable summaries.--format json: machine-readable output for scripting.
Code map
- Library:
src/utilities/github_actions/client.py: GitHub REST API clientruns.py: high-level run operationsmodels.py: typed dataclassesutils.py: helpers (token, repo parsing, XDG cache paths)
- CLI:
src/utilities/github_actions/cli.py
Installation notes
gh-actions-runsentry point is installed via editable install and linked into~/bin.- If a rebuild is needed, rerun the repo install steps (see repo setup).
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon