Trigger and monitor GitHub Actions workflows, CI/CD pipelines, and automated builds...
Run GitHub workflows on github.com
When the user asks to run a workflow:
git remote -v | grep github.comgit rev-parse HEADgit fetch github && git branch -r --contains $(git rev-parse HEAD) | grep -q github/git push github HEAD:main (or appropriate branch name)git fetch github && git branch -r --contains HEAD | grep -q github/ || echo "WARNING: HEAD not pushed to github".github/workflows/ to understand its trigger type and inputsworkflow_dispatch workflows: trigger directly with gh workflow runpush workflows: push to the remote first, then the workflow runs automatically# List workflows
GH_HOST=github.com gh workflow list
# Run a workflow
GH_HOST=github.com gh workflow run <workflow-name>
# Run with inputs
GH_HOST=github.com gh workflow run <workflow-name> -f key=value
# View recent runs
GH_HOST=github.com gh run list --workflow=<workflow-name>
# Watch a run
GH_HOST=github.com gh run watch <run-id>
# Download artifacts from a run
GH_HOST=github.com gh run download <run-id>
For workflows with matrix builds, test with the fastest variant first:
# Run workflow_dispatch workflow with inputs
GH_HOST=github.com gh workflow run luajit.yml -f release_tag=2025.11.23 -f create_release=true
# Run workflow at specific commit (preferred - explicit and reproducible)
GH_HOST=github.com gh workflow run luajit.yml --ref $(git rev-parse HEAD)
# Or with explicit SHA
GH_HOST=github.com gh workflow run luajit.yml --ref abc1234
# Run without creating release (testing)
GH_HOST=github.com gh workflow run nvim.yml -f create_release=false
# Download artifacts from latest run
GH_HOST=github.com gh run list --workflow=luajit.yml --limit 1 --json databaseId --jq '.[0].databaseId' | xargs -I {} GH_HOST=github.com gh run download {}