GitHub Actions actions/download-artifact "Unable to download artifact"
actions/download-artifact@v4 downloads artifacts scoped to the current run by default. A wrong name, an artifact that was never uploaded, or a cross-run download missing run-id/github-token all fail to find the artifact.
What this error means
A download-artifact step fails saying it could not download the artifact, or that no artifact matching the name was found for the run.
github-actions
Error: Unable to download artifact(s): Artifact not found for name: build-output
Please ensure that your artifact is not expired and the artifact was uploaded.Common causes
Name mismatch or upload skipped
The download name must match the upload name exactly, and the upload step must have actually produced an artifact.
Cross-run download without run-id/token
Downloading an artifact from another workflow run needs run-id, repository, and a github-token.
How to fix it
Match the name or set cross-run inputs
- Use the exact artifact name from the upload step.
- For a different run, set run-id, github-token, and repository.
- Remember v4 artifacts are not visible to v3 download and vice versa.
.github/workflows/ci.yml
- uses: actions/download-artifact@v4
with:
name: build-output
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}How to prevent it
- Keep upload and download artifact names identical.
- Do not mix upload-artifact v3 and download-artifact v4 across the same artifact.
Related guides
GitHub Actions actions/upload-artifact "No files were found" (v4)Fix actions/upload-artifact@v4 "No files were found with the provided path" - the path glob matched nothing,…
actions/download-artifact: Retrieve Build OutputsReference for actions/download-artifact: pull artifacts uploaded earlier in the same run into a later job, in…
GitHub Actions actions/upload-pages-artifact "missing artifact"Fix deploy-pages "No artifact named github-pages-artifact found" - upload-pages-artifact did not run or point…