@@ -231,7 +231,7 @@ But, if you are uploading data that is easily compressed (like plaintext, code,
-name:Make a file with a lot of repeated text
run:|
for i in {1..100000}; do echo -n 'foobar' >> foobar.txt; done
-uses:actions/upload-artifact@v4
-uses:actions/upload-artifact@v7
with:
name:my-artifact
path:foobar.txt
@@ -243,7 +243,7 @@ But, if you are uploading data that is easily compressed (like plaintext, code,
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:
```yaml
-uses:actions/upload-artifact@v4
-uses:actions/upload-artifact@v7
with:
name:my-artifact
path:path/to/artifact/
@@ -256,13 +256,13 @@ Unlike earlier versions of `upload-artifact`, uploading to the same artifact via
```yaml
-run:echo hi > world.txt
-uses:actions/upload-artifact@v4
-uses:actions/upload-artifact@v7
with:
# implicitly named as 'artifact'
path:world.txt
-run:echo howdy > extra-file.txt
-uses:actions/upload-artifact@v4
-uses:actions/upload-artifact@v7
with:
# also implicitly named as 'artifact', will fail here!