Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joncloud/download-install-action
https://github.com/joncloud/download-install-action
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/joncloud/download-install-action
- Owner: joncloud
- License: mit
- Created: 2023-07-23T20:11:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-25T16:38:18.000Z (over 1 year ago)
- Last Synced: 2024-10-18T13:41:11.337Z (2 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Download Install Action
Downloads, extracts and installs programs.
## Inputs
### `checksum`
Checksum to validate the downloaded file against. Either this or checksum-url is required.
### `checksum-url`
URL to the checksum file to validate. Either this or checksum is required.
### `checksum-entry`
Used to determine the entry in the checksum file. Required when checksum-url is present.
### `skip-checksum`
Skips checksum evaluation
### `download-url`
URL to download the contents from. Alias for `archive-url`
### `sha-algorithm`
Algorithm used to compare the downloaded archive to the provided checksum. Defaults to `"sha256sum"`.
### `download-entries`
Entries in the content to install. Alias for `archive-entries`
### `target-path`
Where to extract and install the files. Defaults to `"/usr/local/bin"`.
### `modifier`
Modifier to apply to the extracted files. Defaults to `"+x"`.
## Examples
### Downloads and installs terraform
```yml
- uses: 'joncloud/download-install-action@main'
with:
checksum-url: 'https://releases.hashicorp.com/terraform/1.5.3/terraform_1.5.3_SHA256SUMS'
checksum-entry: 'terraform_1.5.3_linux_amd64.zip'
download-url: 'https://releases.hashicorp.com/terraform/1.5.3/terraform_1.5.3_linux_amd64.zip'
download-entries: 'terraform'
```### Downloads and installs terragrunt
```yml
- uses: 'joncloud/download-install-action@main'
with:
checksum-url: 'https://github.com/gruntwork-io/terragrunt/releases/download/v0.48.4/SHA256SUMS'
checksum-entry: 'terragrunt_linux_amd64'
download-url: 'https://github.com/gruntwork-io/terragrunt/releases/download/v0.48.4/terragrunt_linux_amd64'
download-entries: 'terragrunt'
```