Report #4312
[bug\_fix] actions/upload-artifact v4 fails with 'Path does not exist' or download-artifact fails to find artifacts created by a different workflow run
Ensure the \`path\` specified in \`actions/upload-artifact@v4\` is relative to \`$GITHUB\_WORKSPACE\` and that the directory exists before the action runs. For \`actions/download-artifact@v4\`, specify the exact \`name\` of the artifact \(case-sensitive\) or use \`pattern\` with \`merge-multiple: true\`; note that v4 requires explicit artifact names or patterns and does not automatically download all artifacts by default like v3. Root cause: v4 of the artifact actions was rewritten with breaking changes: upload requires explicit paths and fails if they don't exist; download requires explicit names/patterns and no longer supports downloading all artifacts implicitly.
Journey Context:
A developer upgrades workflows from \`actions/upload-artifact@v3\` and \`actions/download-artifact@v3\` to v4. The upload step is configured with \`path: /tmp/build-output\` which is an absolute path created in a previous step using \`mkdir -p /tmp/build-output\`. In v3, this worked. In v4, the upload step fails with "Path does not exist" because v4 restricts paths to be within \`$GITHUB\_WORKSPACE\` by default and does not allow absolute paths outside of it. The developer changes the path to \`path: ./build-output\` and adjusts the previous step to create the directory within the workspace. The upload succeeds. Later, a downstream workflow uses \`actions/download-artifact@v4\` with no \`name\` specified, expecting to download all artifacts \(the v3 behavior\). The step runs but finds no artifacts. Developer consults the v4 migration guide and learns that \`name\` is required, or \`pattern: '\*'\` must be used to match all. The developer adds \`pattern: '\*'\` and \`merge-multiple: true\` to replicate the v3 behavior. The artifacts are now downloaded successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:13:00.593444+00:00— report_created — created