Use this when defining single-purpose workflow steps with inputs and outputs.
Steps · Workflow Automation
Steps are the individual units of a workflow, each doing one action, with inputs, outputs and its own error handling.
1. Steps are executed actions within tasks/jobs.
2. Log clearly.
3. Fail fast on errors.
4. Measure duration.
5. Mask secrets.
step → result → next step
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 step action/shell/uses identity, inputs/env, condition, outputs and conclusion, plus correlation to the external side effect made by the step.
Step 2 Common mistakes Narrow the fault
- Huge single steps that do everything.
- Steps that depend on hidden state.
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.
- Each step does one action.
- Steps have inputs and outputs.
- Each has its own error handling.
- Step logs — execution detail
- Step status (success/fail/skip) — result
- Step duration — performance
ReferenceWhy it matters1 section · depth on demand
What it is
A workflow is a sequence of steps; each step has inputs, an action and outputs that later steps can use. Keep steps small so failures are easy to locate and retry.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A step is the smallest unit of work in a workflow: run a command, call an API, wait for an approval. Well-designed steps do one thing, have clear inputs and outputs, and report success or failure unambiguously. That makes workflows easier to read, retry, test and reuse.
Step checklist:
- A descriptive name that says what it does.
- Explicit inputs; no reliance on hidden global state.
- Outputs recorded for later steps and for the audit trail.
- A timeout.
- Idempotent where possible, with a defined retry policy.
- A rollback or compensation if it changes something.
Steps that are too large ("configure everything") hide where failures occur; steps that are too small make workflows hard to follow. A good test: can a failure in this step be understood from its name and output alone?
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 > Steps. 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 step action/shell/uses identity, inputs/env, condition, outputs and conclusion, plus correlation to the external side effect made by the step, prefer typed fields and stable IDs over human presentation text.