Skip to content

Commit

Permalink
feat: retry-times
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed May 12, 2023
1 parent 70af634 commit a85d7d4
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 478 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Note that you can achieve the same goal on Linux/macOS with simply one command,
* target: The target directory where the downloaded file lies. Will be automatically created if not exists.
* auto-match: (optional, default `false`) If we find the URL from the text, or use the `url` parameter directly as the URL.
* filename: (optional) The filename to use when saving. If not given, use the original filename from the URL.
* retry-times: (optional, default `0`) Times to retry on download failure. If not given, don't attempt to retry.

## Output
* filename: The written file name.
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: "Filename for the downloaded file"
required: false
default: ""
retry-times:
description: "Times to retry on download failure"
required: false
default: "0"
outputs:
filename:
description: "Written file name"
Expand Down
Loading

0 comments on commit a85d7d4

Please sign in to comment.