Skip to content

Commit 726a6dc

Browse files
authored
Adding example of retention-days option. (#131)
1 parent 3db166e commit 726a6dc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,26 @@ If file permissions and case sensitivity are required, you can `tar` all of your
234234
path: my_files.tar
235235
```
236236

237+
### Retention Period
238+
239+
Artifacts are retained for 90 days by default. You can specify a shorter retention period:
240+
241+
```yaml
242+
- name: 'Create a file'
243+
run: echo "I won't live long" > my_file.txt
244+
245+
- name: 'Upload Artifact'
246+
uses: actions/upload-artifact@v2
247+
with:
248+
name: my-artifact
249+
path: my_file.txt
250+
retention-days: 5
251+
252+
```
253+
254+
The retention period must be between 1 and 90 inclusive.
255+
256+
237257
## Additional Documentation
238258

239259
See [persisting workflow data using artifacts](https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts) for additional examples and tips.

0 commit comments

Comments
 (0)