Skip to content

Commit 6673cd0

Browse files
authored
Update lockfileVersion in package-lock.json (#302)
* update lockfileVersion * regenerate package lock * update actions/artifact package * upgrade to v3 * bump license number * bump upload-artifact package version * regenerate index.js * add newline * generate release * revert index.js * use correct typescript version * revert artifact version * regenerate lock file * revert to newer packages * regenerate index.js * use new version in README
1 parent 2244c82 commit 6673cd0

File tree

5 files changed

+9956
-66
lines changed

5 files changed

+9956
-66
lines changed

.licenses/npm/@actions/artifact.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Upload-Artifact v2
1+
# Upload-Artifact v3
22

33
This uploads artifacts from your workflow allowing you to share data between jobs and store data once a workflow is complete.
44

@@ -34,7 +34,7 @@ steps:
3434

3535
- run: echo hello > path/to/artifact/world.txt
3636

37-
- uses: actions/upload-artifact@v2
37+
- uses: actions/upload-artifact@v3
3838
with:
3939
name: my-artifact
4040
path: path/to/artifact/world.txt
@@ -43,7 +43,7 @@ steps:
4343
### Upload an Entire Directory
4444
4545
```yaml
46-
- uses: actions/upload-artifact@v2
46+
- uses: actions/upload-artifact@v3
4747
with:
4848
name: my-artifact
4949
path: path/to/artifact/ # or path/to/artifact
@@ -52,7 +52,7 @@ steps:
5252
### Upload using a Wildcard Pattern
5353
5454
```yaml
55-
- uses: actions/upload-artifact@v2
55+
- uses: actions/upload-artifact@v3
5656
with:
5757
name: my-artifact
5858
path: path/**/[abc]rtifac?/*
@@ -61,7 +61,7 @@ steps:
6161
### Upload using Multiple Paths and Exclusions
6262
6363
```yaml
64-
- uses: actions/upload-artifact@v2
64+
- uses: actions/upload-artifact@v3
6565
with:
6666
name: my-artifact
6767
path: |
@@ -97,7 +97,7 @@ The [@actions/artifact](https://github.com/actions/toolkit/tree/main/packages/ar
9797
If a path (or paths), result in no files being found for the artifact, the action will succeed but print out a warning. In certain scenarios it may be desirable to fail the action or suppress the warning. The `if-no-files-found` option allows you to customize the behavior of the action if no files are found:
9898

9999
```yaml
100-
- uses: actions/upload-artifact@v2
100+
- uses: actions/upload-artifact@v3
101101
with:
102102
name: my-artifact
103103
path: path/to/artifact/
@@ -109,7 +109,7 @@ If a path (or paths), result in no files being found for the artifact, the actio
109109
To upload artifacts only when the previous step of a job failed, use [`if: failure()`](https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions#job-status-check-functions):
110110

111111
```yaml
112-
- uses: actions/upload-artifact@v2
112+
- uses: actions/upload-artifact@v3
113113
if: failure()
114114
with:
115115
name: my-artifact
@@ -121,7 +121,7 @@ To upload artifacts only when the previous step of a job failed, use [`if: failu
121121
You can upload an artifact without specifying a name
122122

123123
```yaml
124-
- uses: actions/upload-artifact@v2
124+
- uses: actions/upload-artifact@v3
125125
with:
126126
path: path/to/artifact/world.txt
127127
```
@@ -134,17 +134,17 @@ With the following example, the available artifact (named `artifact` by default
134134

135135
```yaml
136136
- run: echo hi > world.txt
137-
- uses: actions/upload-artifact@v2
137+
- uses: actions/upload-artifact@v3
138138
with:
139139
path: world.txt
140140
141141
- run: echo howdy > extra-file.txt
142-
- uses: actions/upload-artifact@v2
142+
- uses: actions/upload-artifact@v3
143143
with:
144144
path: extra-file.txt
145145
146146
- run: echo hello > world.txt
147-
- uses: actions/upload-artifact@v2
147+
- uses: actions/upload-artifact@v3
148148
with:
149149
path: world.txt
150150
```
@@ -159,7 +159,7 @@ Each artifact behaves as a file share. Uploading to the same artifact multiple t
159159
- name: Create a file
160160
run: echo ${{ matrix.node-version }} > my_file.txt
161161
- name: Accidentally upload to the same artifact via multiple jobs
162-
uses: actions/upload-artifact@v2
162+
uses: actions/upload-artifact@v3
163163
with:
164164
name: my-artifact
165165
path: ${{ github.workspace }}
@@ -170,7 +170,7 @@ Each artifact behaves as a file share. Uploading to the same artifact multiple t
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
173-
uses: actions/upload-artifact@v2
173+
uses: actions/upload-artifact@v3
174174
with:
175175
name: my-artifact ${{ matrix.node-version }}
176176
path: ${{ github.workspace }}
@@ -184,9 +184,9 @@ You can use `~` in the path input as a substitute for `$HOME`. Basic tilde expan
184184
- run: |
185185
mkdir -p ~/new/artifact
186186
echo hello > ~/new/artifact/world.txt
187-
- uses: actions/upload-artifact@v2
187+
- uses: actions/upload-artifact@v3
188188
with:
189-
name: Artifacts-V2
189+
name: Artifacts-V3
190190
path: ~/new/**/*
191191
```
192192

@@ -199,7 +199,7 @@ Environment variables along with context expressions can also be used for input.
199199
- run: |
200200
mkdir -p ${{ github.workspace }}/artifact
201201
echo hello > ${{ github.workspace }}/artifact/world.txt
202-
- uses: actions/upload-artifact@v2
202+
- uses: actions/upload-artifact@v3
203203
with:
204204
name: ${{ env.name }}-name
205205
path: ${{ github.workspace }}/artifact/**/*
@@ -213,7 +213,7 @@ For environment variables created in other steps, make sure to use the `env` exp
213213
mkdir testing
214214
echo "This is a file to upload" > testing/file.txt
215215
echo "artifactPath=testing/file.txt" >> $GITHUB_ENV
216-
- uses: actions/upload-artifact@v2
216+
- uses: actions/upload-artifact@v3
217217
with:
218218
name: artifact
219219
path: ${{ env.artifactPath }} # this will resolve to testing/file.txt at runtime
@@ -228,7 +228,7 @@ Artifacts are retained for 90 days by default. You can specify a shorter retenti
228228
run: echo "I won't live long" > my_file.txt
229229
230230
- name: Upload Artifact
231-
uses: actions/upload-artifact@v2
231+
uses: actions/upload-artifact@v3
232232
with:
233233
name: my-artifact
234234
path: my_file.txt
@@ -270,7 +270,7 @@ If file permissions and case sensitivity are required, you can `tar` all of your
270270
run: tar -cvf my_files.tar /path/to/my/directory
271271
272272
- name: Upload Artifact
273-
uses: actions/upload-artifact@v2
273+
uses: actions/upload-artifact@v3
274274
with:
275275
name: my-artifact
276276
path: my_files.tar

0 commit comments

Comments
 (0)