Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/legion2/download-release-action
GitHub Action for downloading GitHub release archives
https://github.com/legion2/download-release-action
github-actions github-releases
Last synced: 13 days ago
JSON representation
GitHub Action for downloading GitHub release archives
- Host: GitHub
- URL: https://github.com/legion2/download-release-action
- Owner: Legion2
- License: apache-2.0
- Created: 2019-02-06T20:46:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T07:51:36.000Z (about 5 years ago)
- Last Synced: 2024-10-12T19:37:01.085Z (about 1 month ago)
- Topics: github-actions, github-releases
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 17
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Download GitHub Release GitHub Action
GitHub Action for downloading files from GitHub release.
It can download the source zip archive and unzip it into a directory.
It is also possible to download any other file of the release.
This action can download from public and private repositories.## Usage
See [action.yml](action.yml) for comprehensive list of parameters.Basic:
```yaml
on: push
name: Main Workflow
jobs:
build:
name: "Download release"
runs-on: ubuntu-latest
steps:
- name: Download CLI
uses: Legion2/[email protected]
with:
repository: apache/openwhisk-cli
tag: '0.10.0-incubating'
path: downloads
file: OpenWhisk_CLI-0.10.0-incubating-all.tgz
```If your asset belongs to a private repository you need to pass a Github token with the `repo` permission, like so:
```yaml
on: push
name: Main Workflow
jobs:
build:
name: "Download release"
runs-on: ubuntu-latest
steps:
- name: Download CLI
uses: Legion2/[email protected]
with:
repository: Legion2/private-repo
tag: '1.0.0'
path: downloads
file: hello-world.sh
token: ${{ secrets.SECRET_NAME }}
```
Most likely you can't use `${{ secrets.GITHUB_TOKEN }}` because it only allow access to the repo of the current workflow and not to other private repositories.s## License
The Dockerfile and associated scripts and documentation in this project are released under the [Apache-2.0 License](LICENSE).