Skip to content

Commit

Permalink
Merge pull request #1 from nmerget/feat-retention-days
Browse files Browse the repository at this point in the history
feat: add retention-days as input for action
  • Loading branch information
nmerget authored Sep 22, 2023
2 parents 7492fd7 + f14cb01 commit efe9e8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
- name: ⏫ Upload build
uses: nmerget/upload-tar-artifact@v1.0.0
with:
name: frontend-build # use a good name because this will be shown in GitHub summary
name: frontend-build # use a good name because this will be shown in GitHub summary, don't use the same name as `path`
path: dist # your directory to upload
retention-days: 5 # delete the artifact at some point
...
````

5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ inputs:
path:
description: 'Path to a directory or file to zip'
required: true
retention-days:
description: ' Duration after which artifact will expire in days'
required: false
default: "5"
runs:
using: 'composite'
steps:
Expand All @@ -24,3 +28,4 @@ runs:
with:
name: ${{ inputs.name }}
path: ${{ inputs.name }}
retention-days: ${{ inputs.retention-days }}

0 comments on commit efe9e8f

Please sign in to comment.