Interview Prep/GitHub Actions/Rapid-fire Commands & Syntax

Rapid-fire: inspecting runners and usage through the API.

IntermediateConceptRapid-fire Commands & Syntax
Answer
gh api orgs/ORG/actions/runners --jq '.runners[] | {name, status, busy, labels: [.labels[].name]}'
gh api -X POST orgs/ORG/actions/runners/registration-token --jq .token
gh api repos/ORG/REPO/actions/runs --jq '.workflow_runs[0:5][] | {id, name, conclusion}'
gh api repos/ORG/REPO/actions/cache/usage
gh api repos/ORG/REPO/actions/permissions
All GitHub Actions questions Roadmap: GitHub Actions

More on Rapid-fire Commands & Syntax