1
0

Compare commits

..

8 Commits

Author SHA1 Message Date
Jonathan Tamsut
d6471ef5ac bump upload-artifact package version 2022-03-01 14:40:20 -08:00
Jonathan Tamsut
69cf2970dc bump license number 2022-03-01 14:36:08 -08:00
Jonathan Tamsut
8b0c777732 upgrade to v3 2022-03-01 13:19:18 -08:00
Jonathan Tamsut
105e65a6d9 update actions/artifact package 2022-03-01 13:11:25 -08:00
Jonathan Tamsut
261c7341e7 regenerate package lock 2022-03-01 13:03:01 -08:00
Jonathan Tamsut
484b09cf31 update lockfileVersion 2022-03-01 10:48:20 -08:00
Thomas Boop
2244c82003 Update to node16 (#293)
Node 12 has an end of life on April 30, 2022.

This PR updates the default runtime to [node16](https://github.blog/changelog/2021-12-10-github-actions-github-hosted-runners-now-run-node-js-16-by-default/), rather then node12. 

This is supported on all Actions Runners v2.285.0 or later.
2022-02-07 21:18:54 +01:00
Konrad Pabjan
87348cee5f Add 503 warning when uploading to the same artifact 2022-01-20 15:26:28 +01:00
5 changed files with 9804 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
---
name: "@actions/artifact"
version: 0.6.1
version: 1.0.0
type: npm
summary:
homepage:

View File

@@ -149,8 +149,6 @@ With the following example, the available artifact (named `artifact` by default
path: world.txt
```
> **_Warning:_** Be careful when uploading to the same artifact via multiple jobs as artifacts may become corrupted
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:
```yaml
@@ -167,6 +165,8 @@ Each artifact behaves as a file share. Uploading to the same artifact multiple t
path: ${{ github.workspace }}
```
> **_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.
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:
```yaml

View File

@@ -24,5 +24,5 @@ inputs:
Minimum 1 day.
Maximum 90 days unless changed from the repository settings page.
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'

9803
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "upload-artifact",
"version": "2.0.1",
"version": "3.0.0",
"description": "Upload a build artifact that can be used by subsequent workflow steps",
"main": "dist/index.js",
"scripts": {
@@ -29,7 +29,7 @@
},
"homepage": "https://github.com/actions/upload-artifact#readme",
"dependencies": {
"@actions/artifact": "^0.6.1",
"@actions/artifact": "^1.0.0",
"@actions/core": "^1.2.6",
"@actions/glob": "^0.1.0",
"@actions/io": "^1.0.2"