-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support automatic extraction of archives
- Loading branch information
Showing
11 changed files
with
32,136 additions
and
2,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,12 @@ A Github Action to download assets from github release. It can download specifie | |
# It will create the target directory automatically if not present | ||
# eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads | ||
out-file-path: "" | ||
|
||
|
||
# A flagt to set if the downloaded assats are archives and should be extracted | ||
# Checks all downloaded files if they end with zip, tar or tar.gz and extracts them, if true. | ||
# Prints a warning if enabled but file is not an archive - but does not fail. | ||
extract: false | ||
|
||
# Github access token to download files from private repositories | ||
# https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets | ||
# eg: token: ${{ secrets.MY_TOKEN }} | ||
|
@@ -138,3 +143,13 @@ A Github Action to download assets from github release. It can download specifie | |
releaseId: "123123" | ||
fileName: "foo.zip" | ||
``` | ||
|
||
### Download and extracts archives | ||
|
||
```yaml | ||
- uses: robinraju/[email protected] | ||
with: | ||
fileName: "foo.zip" | ||
latest: true | ||
extract: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.