get-artifact-id
pipeline get-artifact-id - Get artifact ID from a workflow run
Queries GitHub API to find an artifact ID by name from a workflow run.
This replaces the jq pattern: gh api ... --jq '.artifacts[] | select(.name == "X") | .id'
SHA Detection: 1. --sha flag (explicit) 2. GITHUB_SHA env var (CI) 3. origin/main (devbox)
Flags
| Flag | Description |
|---|---|
--workflow |
Workflow name to find run for |
--run-id |
Specific run ID (alternative to workflow+sha) |
--name |
Artifact name to find (required) |
--sha |
Commit SHA (auto-detected if not provided) |
Examples
pipeline get-artifact-id --workflow ci-r2r-cli.yaml --name build-artifacts
pipeline get-artifact-id --run-id 12345 --name commands-binary
See Also
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.