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

Add an option to specify retention period for artifacts #126

Merged
merged 2 commits into from Sep 18, 2020

Conversation

yacaovsnc
Copy link
Contributor

@yacaovsnc yacaovsnc commented Sep 18, 2020

#49
#34

Add an option to specify a shorter retention for each artifact:

      - uses: actions/upload-artifact
        with:
          name: my-artifact
          path: ./my_path
          retention-days: 30

If the new retention-days option is omitted or if the input is 0, the artifact will have a default retention of 90 days unless the value is overridden on the repository settings page (coming later). This yaml input cannot be greater than the value specified on the setting page.

Negative values are not allowed, so the artifact will live for 1 day at least.

Copy link
Collaborator

@konradpabjan konradpabjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 💪 Just a few questions

src/input-helper.ts Show resolved Hide resolved
action.yml Show resolved Hide resolved
@sarink
Copy link

sarink commented Apr 1, 2021

How do you do this with the node API? import * as artifact from '@actions/artifact';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants