CICD-092 · Download the artifact in another job
Encyclopedia · Artifact handoffs · All snippets
Previous · CICD-091 · Next · CICD-093
1. Where it fits
- Placement Under the consuming job's
steps. Addneedsfor the producing job. - Prerequisites actions runner, trusted producers and files actually generated by tests.
- Platforms github-actions.
2. Copy the snippet
yaml
uses: actions/download-artifact@v4
with:
name: package
path: received3. How it works
Download retrieves the named artifact into received. A job edge ensures the producer finished before the consumer looks for it.
The dependency controls scheduling. The artifact store carries the bytes.
flowchart TD N1["Producer job"] N2["Artifact store"] N1 --> N2 N3["Job dependency"] N1 --> N3 N4["Consumer job"] N2 --> N4 N3 --> N4 classDef trigger fill:#EFF6FF,stroke:#0540F2,color:#0A0A0A classDef build fill:#CCFBF1,stroke:#0D9488,color:#0A0A0A classDef test fill:#EEF2FF,stroke:#4F46E5,color:#0A0A0A classDef gate fill:#FEF3C7,stroke:#D97706,color:#0A0A0A classDef security fill:#EDE9FE,stroke:#7C3AED,color:#0A0A0A classDef deploy fill:#D1FAE5,stroke:#059669,color:#0A0A0A classDef fail fill:#FEE2E2,stroke:#DC2626,color:#0A0A0A class N1,N2 build class N3 gate class N4 deploy
4. Verify the result
Add needs on the producer. Expect the wheel under received.
Validation syntax-validated (YAML parse). Status definitions.