Skip to content

Commit e454baa

Browse files
authored
Readme: bump all the example versions to v7 (#796)
1 parent 74fad66 commit e454baa

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ You are welcome to still raise bugs in this repo.
6767
### Inputs
6868

6969
```yaml
70-
- uses: actions/upload-artifact@v4
70+
- uses: actions/upload-artifact@v7
7171
with:
7272
# Name of the artifact to upload.
7373
# Optional. Default is 'artifact'
@@ -131,7 +131,7 @@ You are welcome to still raise bugs in this repo.
131131
steps:
132132
- run: mkdir -p path/to/artifact
133133
- run: echo hello > path/to/artifact/world.txt
134-
- uses: actions/upload-artifact@v4
134+
- uses: actions/upload-artifact@v7
135135
with:
136136
name: my-artifact
137137
path: path/to/artifact/world.txt
@@ -143,7 +143,7 @@ steps:
143143
steps:
144144
- run: mkdir -p path/to/artifact
145145
- run: echo hello > path/to/artifact/world.txt
146-
- uses: actions/upload-artifact@v4
146+
- uses: actions/upload-artifact@v7
147147
with:
148148
path: path/to/artifact/world.txt
149149
archive: false
@@ -152,7 +152,7 @@ steps:
152152
### Upload an Entire Directory
153153

154154
```yaml
155-
- uses: actions/upload-artifact@v4
155+
- uses: actions/upload-artifact@v7
156156
with:
157157
name: my-artifact
158158
path: path/to/artifact/ # or path/to/artifact
@@ -161,7 +161,7 @@ steps:
161161
### Upload using a Wildcard Pattern
162162

163163
```yaml
164-
- uses: actions/upload-artifact@v4
164+
- uses: actions/upload-artifact@v7
165165
with:
166166
name: my-artifact
167167
path: path/**/[abc]rtifac?/*
@@ -170,7 +170,7 @@ steps:
170170
### Upload using Multiple Paths and Exclusions
171171

172172
```yaml
173-
- uses: actions/upload-artifact@v4
173+
- uses: actions/upload-artifact@v7
174174
with:
175175
name: my-artifact
176176
path: |
@@ -218,7 +218,7 @@ For instance, if you are uploading random binary data, you can save a lot of tim
218218
- name: Make a 1GB random binary file
219219
run: |
220220
dd if=/dev/urandom of=my-1gb-file bs=1M count=1000
221-
- uses: actions/upload-artifact@v4
221+
- uses: actions/upload-artifact@v7
222222
with:
223223
name: my-artifact
224224
path: my-1gb-file
@@ -231,7 +231,7 @@ But, if you are uploading data that is easily compressed (like plaintext, code,
231231
- name: Make a file with a lot of repeated text
232232
run: |
233233
for i in {1..100000}; do echo -n 'foobar' >> foobar.txt; done
234-
- uses: actions/upload-artifact@v4
234+
- uses: actions/upload-artifact@v7
235235
with:
236236
name: my-artifact
237237
path: foobar.txt
@@ -243,7 +243,7 @@ But, if you are uploading data that is easily compressed (like plaintext, code,
243243
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:
244244

245245
```yaml
246-
- uses: actions/upload-artifact@v4
246+
- uses: actions/upload-artifact@v7
247247
with:
248248
name: my-artifact
249249
path: path/to/artifact/
@@ -256,13 +256,13 @@ Unlike earlier versions of `upload-artifact`, uploading to the same artifact via
256256

257257
```yaml
258258
- run: echo hi > world.txt
259-
- uses: actions/upload-artifact@v4
259+
- uses: actions/upload-artifact@v7
260260
with:
261261
# implicitly named as 'artifact'
262262
path: world.txt
263263

264264
- run: echo howdy > extra-file.txt
265-
- uses: actions/upload-artifact@v4
265+
- uses: actions/upload-artifact@v7
266266
with:
267267
# also implicitly named as 'artifact', will fail here!
268268
path: extra-file.txt
@@ -288,7 +288,7 @@ jobs:
288288
- name: Build
289289
run: ./some-script --version=${{ matrix.version }} > my-binary
290290
- name: Upload
291-
uses: actions/upload-artifact@v4
291+
uses: actions/upload-artifact@v7
292292
with:
293293
name: binary-${{ matrix.os }}-${{ matrix.version }}
294294
path: my-binary
@@ -306,7 +306,7 @@ You can use `~` in the path input as a substitute for `$HOME`. Basic tilde expan
306306
- run: |
307307
mkdir -p ~/new/artifact
308308
echo hello > ~/new/artifact/world.txt
309-
- uses: actions/upload-artifact@v4
309+
- uses: actions/upload-artifact@v7
310310
with:
311311
name: my-artifacts
312312
path: ~/new/**/*
@@ -321,7 +321,7 @@ Environment variables along with context expressions can also be used for input.
321321
- run: |
322322
mkdir -p ${{ github.workspace }}/artifact
323323
echo hello > ${{ github.workspace }}/artifact/world.txt
324-
- uses: actions/upload-artifact@v4
324+
- uses: actions/upload-artifact@v7
325325
with:
326326
name: ${{ env.name }}-name
327327
path: ${{ github.workspace }}/artifact/**/*
@@ -335,7 +335,7 @@ For environment variables created in other steps, make sure to use the `env` exp
335335
mkdir testing
336336
echo "This is a file to upload" > testing/file.txt
337337
echo "artifactPath=testing/file.txt" >> $GITHUB_ENV
338-
- uses: actions/upload-artifact@v4
338+
- uses: actions/upload-artifact@v7
339339
with:
340340
name: artifact
341341
path: ${{ env.artifactPath }} # this will resolve to testing/file.txt at runtime
@@ -350,7 +350,7 @@ Artifacts are retained for 90 days by default. You can specify a shorter retenti
350350
run: echo "I won't live long" > my_file.txt
351351
352352
- name: Upload Artifact
353-
uses: actions/upload-artifact@v4
353+
uses: actions/upload-artifact@v7
354354
with:
355355
name: my-artifact
356356
path: my_file.txt
@@ -366,7 +366,7 @@ If an artifact upload is successful then an `artifact-id` output is available. T
366366
#### Example output between steps
367367

368368
```yml
369-
- uses: actions/upload-artifact@v4
369+
- uses: actions/upload-artifact@v7
370370
id: artifact-upload-step
371371
with:
372372
name: my-artifact
@@ -385,7 +385,7 @@ jobs:
385385
outputs:
386386
output1: ${{ steps.artifact-upload-step.outputs.artifact-id }}
387387
steps:
388-
- uses: actions/upload-artifact@v4
388+
- uses: actions/upload-artifact@v7
389389
id: artifact-upload-step
390390
with:
391391
name: my-artifact
@@ -411,7 +411,7 @@ jobs:
411411
- name: Create a file
412412
run: echo "hello world" > my-file.txt
413413
- name: Upload Artifact
414-
uses: actions/upload-artifact@v4
414+
uses: actions/upload-artifact@v7
415415
with:
416416
name: my-artifact # NOTE: same artifact name
417417
path: my-file.txt
@@ -422,7 +422,7 @@ jobs:
422422
- name: Create a different file
423423
run: echo "goodbye world" > my-file.txt
424424
- name: Upload Artifact
425-
uses: actions/upload-artifact@v4
425+
uses: actions/upload-artifact@v7
426426
with:
427427
name: my-artifact # NOTE: same artifact name
428428
path: my-file.txt
@@ -438,7 +438,7 @@ Any files that contain sensitive information that should not be in the uploaded
438438
using the `path`:
439439

440440
```yaml
441-
- uses: actions/upload-artifact@v4
441+
- uses: actions/upload-artifact@v7
442442
with:
443443
name: my-artifact
444444
include-hidden-files: true
@@ -470,7 +470,7 @@ If you must preserve permissions, you can `tar` all of your files together befor
470470
run: tar -cvf my_files.tar /path/to/my/directory
471471
472472
- name: 'Upload Artifact'
473-
uses: actions/upload-artifact@v4
473+
uses: actions/upload-artifact@v7
474474
with:
475475
path: my_files.tar
476476
archive: false

0 commit comments

Comments
 (0)