`Error: Unable to download artifact(s): Artifact not found for name: build`
BeginnerTroubleshootingCaching, Artifacts, Builds & Scans
Answer
Likely causes → Download job does not needs the upload job (runs in parallel), the name differs, the artifact is from another run (needs run-id and github-token), or it expired.
Diagnose →
gh run view <id> --json jobs
gh api repos/ORG/REPO/actions/runs/<id>/artifacts --jq '.artifacts[].name'
Fix → Add needs, align names, pass run-id and github-token: ${{ github.token }} with actions: read for cross-run.
Prevent → Use if-no-files-found: error on upload so missing artifacts fail early.
More on Caching, Artifacts, Builds & Scans
`Cache not found for input keys: npm-Linux-3f9a...` on every single run.Beginner`Failed to save: Unable to reserve cache with key npm-Linux-3f9a..., another job may be creating this cache.`BeginnerA cache restores but the build is still slow and reinstalls everything.Intermediate`Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run`Beginner`Warning: No files were found with the provided path: coverage/. No artifacts will be uploaded.` but tests ran.Beginner`ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref ...: "/package-lock.json": not found`Intermediate