Skip to content

CICD-224 · Multi-repository orchestration ​

Encyclopedia · Advanced workflow orchestration · All snippets

Previous · CICD-223 · Next · CICD-225

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 RELEASE_SHA.

2. Copy the snippet ​

bash
for repo in org/api org/worker org/portal; do gh workflow run consume.yml --repo "$repo" --ref main -f release_sha="${RELEASE_SHA:?}" || exit 1; done

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 ​

Record dispatches individually and make downstream operations idempotent on SHA. A partial failure can occur after earlier targets accept.

Validation syntax-validated (Bash parse). Status definitions.