Report #57113
[bug\_fix] No files were found with the provided path during actions/upload-artifact or Unable to find any artifacts during download
Ensure the \`path\` in \`actions/upload-artifact\` is relative to \`$GITHUB\_WORKSPACE\` \(the default working directory\) and that files exist before uploading \(use \`if-no-files-found: error\` to catch typos immediately\). For download, ensure the \`name\` matches exactly \(case-sensitive\) and that the upload job completed \(check for \`if\` conditions that might skip it\). Use \`path\` in download to specify the extraction directory.
Journey Context:
A developer sets up a build job that compiles a binary to \`./build/myapp\`, followed by \`actions/upload-artifact@v4\` with \`path: build/\`. The upload step logs "No files were found with the provided path: build/" and reports success with a warning. The next job attempts to download the artifact and fails with "Unable to find any artifacts". The developer checks the previous build step and sees \`ls -la build/\` shows the file exists. They realize the build step had \`working-directory: ./server\`, so the relative path \`build/\` in the upload step resolved to \`./server/build/\` \(which doesn't exist\) instead of \`$GITHUB\_WORKSPACE/build\`. They fix it by either removing the \`working-directory\` from the build step or changing the upload path to \`./build/\` and ensuring the upload step runs from the workspace root. They also add \`if-no-files-found: error\` to the upload step to catch such path mismatches immediately rather than allowing the job to continue with a missing artifact. In another scenario involving cross-job downloads, a developer finds the download fails because the upload job was skipped due to an \`if: github.event\_name == 'push'\` condition that evaluated false on a PR. The download job, which had \`needs: upload-job\`, proceeded anyway because the dependency was technically "completed" \(skipped\). The fix involves adding an \`if: needs.upload-job.result == 'success'\` to the download job. The core fix always involves verifying relative paths against \`$GITHUB\_WORKSPACE\`, checking job skip conditions, and using strict error handling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:21:01.757684+00:00— report_created — created