Use this when workflow steps depend on each other.
Dependencies · Workflow Automation
Dependencies in workflows define which steps must finish before others start, forming a graph that the engine uses to order and parallelize steps.
1. Dependencies define order.
2. Model as DAG.
3. Avoid hidden dependencies (timing).
4. Handle failed upstream.
5. Visualise.
task A → task B (depends on A)
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as branch condition drift, hidden dependency, duplicate parallel mutation, approval bypass, retry storm, partial rollback and successful orchestration with failed consumer state, choosing the cases most relevant to versioned external/internal dependency graph, availability/compatibility checks, startup/order requirements and explicit behavior when a dependency is missing.
Step 2 Common mistakes Narrow the fault
- Hidden dependencies.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Dependencies form a graph.
- The graph enables parallelism.
- Failures block dependent steps.
- Dependency graph (DAG) — ordering
- Wait conditions — gating
- Cycle detection — valid DAG
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Dependencies define which steps must finish before others may start. Expressing them explicitly lets an engine run independent steps in parallel while keeping required order — and makes the workflow's logic visible instead of hidden in step order.
# GitHub Actions
jobs:
build: { ... }
test: { needs: build, ... }
deploy: { needs: [build, test], ... }
# Argo Workflows DAG
dag:
tasks:
- name: ipam
- name: dns
dependencies: [ipam]
- name: vm
dependencies: [ipam]
Watch for hidden dependencies — a step that reads a file another step writes, or relies on a DNS record propagating — and for circular dependencies, which deadlock the workflow.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Workflow Automation > Dependencies. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For versioned external/internal dependency graph, availability/compatibility checks, startup/order requirements and explicit behavior when a dependency is missing, prefer typed fields and stable IDs over human presentation text.