Skip to content

Commit 87348ce

Browse files
authored
Add 503 warning when uploading to the same artifact
1 parent 82c141c commit 87348ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ With the following example, the available artifact (named `artifact` by default
149149
path: world.txt
150150
```
151151

152-
> **_Warning:_** Be careful when uploading to the same artifact via multiple jobs as artifacts may become corrupted
153-
154152
Each artifact behaves as a file share. Uploading to the same artifact multiple times in the same workflow can overwrite and append already uploaded files:
155153

156154
```yaml
@@ -167,6 +165,8 @@ Each artifact behaves as a file share. Uploading to the same artifact multiple t
167165
path: ${{ github.workspace }}
168166
```
169167

168+
> **_Warning:_** Be careful when uploading to the same artifact via multiple jobs as artifacts may become corrupted. When uploading a file with an identical name and path in multiple jobs, uploads may fail with 503 errors due to conflicting uploads happening at the same time. Ensure uploads to identical locations to not interfere with each other.
169+
170170
In the above example, four jobs will upload four different files to the same artifact but there will only be one file available when `my-artifact` is downloaded. Each job overwrites what was previously uploaded. To ensure that jobs don't overwrite existing artifacts, use a different name per job:
171171

172172
```yaml

0 commit comments

Comments
 (0)