Add an option to specify retention period

This commit is contained in:
Yang Cao
2020-08-27 13:39:36 -04:00
parent 58740802ef
commit 59018c2f85
8 changed files with 66 additions and 10 deletions

View File

@ -17,6 +17,12 @@ inputs:
error: Fail the action with an error message
ignore: Do not output any warnings or errors, the action does not fail
default: 'warn'
retention-days:
description: >
Duration after which artifact will expire in days. 0 means using default retention.
Minimum 1 day.
Maximum 90 days unless changed from the repository settings page.
runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/index.js'