What happened?
When setting overwrite: true, upload sometimes fails with the following output:
Run actions/upload-artifact@v4
with:
name: pull-request-number
path: pull_request_number.txt
overwrite: true
if-no-files-found: warn
compression-level: 6
env:
FORCE_COLOR: 1
FLAKINESS_CONNECTION_STRING:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PWTEST_BOT_NAME: ubuntu-latest-node18-1
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
What did you expect to happen?
One of the job succeeded and other silently continue doing nothing as documentation of the option suggests.
How can we reproduce it?
Configure several parallel jobs within a workflow and matrixes to write into the same artifact with overwrite: true, something like this:
- name: Upload artifact with the pull request number
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: pull-request-number
path: pull_request_number.txt
overwrite: true
The upload action will fail sometimes, e.g. see this run.
Anything else we need to know?
No response
What version of the action are you using?
v4.3.0
What are your runner environments?
linux, window, macos
Are you on GitHub Enterprise Server? If so, what version?
No response
What happened?
When setting
overwrite: true, upload sometimes fails with the following output:What did you expect to happen?
One of the job succeeded and other silently continue doing nothing as documentation of the option suggests.
How can we reproduce it?
Configure several parallel jobs within a workflow and matrixes to write into the same artifact with
overwrite: true, something like this:The upload action will fail sometimes, e.g. see this run.
Anything else we need to know?
No response
What version of the action are you using?
v4.3.0
What are your runner environments?
linux, window, macos
Are you on GitHub Enterprise Server? If so, what version?
No response