Report #6123
[bug\_fix] Artifact upload fails with 'Path does not exist' despite file being created in previous step with working-directory set
Use the full relative path from repository root \(e.g., \`path: frontend/build\`\) in \`actions/upload-artifact\`, or use \`$\{\{ github.workspace \}\}/path/to/artifact\`, because the upload-artifact action does not respect the \`working-directory\` setting and always resolves paths relative to GITHUB\_WORKSPACE.
Journey Context:
A workflow has a step that runs \`npm run build\` with \`working-directory: ./frontend\`, creating a \`build/\` folder inside \`./frontend\`. The next step uses \`actions/upload-artifact\` with \`path: build/\` and the same \`working-directory: ./frontend\`, expecting to upload \`./frontend/build/\`. The step fails immediately with 'Error: Path does not exist: build/'. The developer verifies via \`ls -la\` in the previous step that the directory exists. They try \`./build\`, \`frontend/build\`, and absolute paths. They discover that \`actions/upload-artifact\` v3/v4 specifically states in documentation that it does not honor the working-directory setting and always treats paths as relative to the repository root \(GITHUB\_WORKSPACE\). The fix is to either remove working-directory from the upload step and use \`path: frontend/build/\`, or explicitly use \`$\{\{ github.workspace \}\}/frontend/build\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:13:12.395618+00:00— report_created — created