Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding example of retention-days option to README.md #131

Merged
merged 1 commit into from Nov 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Expand Up @@ -234,6 +234,26 @@ If file permissions and case sensitivity are required, you can `tar` all of your
path: my_files.tar
```

### Retention Period

Artifacts are retained for 90 days by default. You can specify a shorter retention period:

```yaml
- name: 'Create a file'
run: echo "I won't live long" > my_file.txt

- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: my-artifact
path: my_file.txt
retention-days: 5

```

The retention period must be between 1 and 90 inclusive.


## Additional Documentation

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.
Expand Down