CICD-218 · Cross-repository workflow triggering
Encyclopedia · Advanced workflow orchestration · All snippets
Previous · CICD-217 · Next · CICD-219
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries.
- Platforms github-actions, github-cli.
- Parameters
DOWNSTREAM_REPO,RELEASE_SHA.
2. Copy the snippet
bash
gh workflow run consume.yml --repo "${DOWNSTREAM_REPO:?}" --ref main -f source_sha="${RELEASE_SHA:?}"3. How it works
The CLI requests a manual run for the specified repository, workflow, ref and inputs. Inspect the downstream run for actual execution.
4. Verify the result
Use a narrowly scoped GitHub App installation token for the target repository. The upstream default token is scoped to its own repository.
Validation syntax-validated (Bash parse). Status definitions.