Files
release-downloader/action.yml
T
Robin Raju a2560d77c5 Add output variable tag_name to the action (#480)
* Add output variable `tag_name` to the action

* Simplify test steps on ci

* Set bash as default shell for windows runner

* Update README
2022-07-06 13:46:57 +02:00

51 lines
1.5 KiB
YAML

name: "release-downloader"
description: "Download release assets from private or public github repositories"
author: "Robin Raju"
inputs:
repository:
description: "The source repository path. Expected format {owner}/{repo}"
default: ${{ github.repository }}
required: false
latest:
description: "A flag to choose between latest release and remaining releases"
default: "false"
required: false
tag:
description: "The github tag to download the release from"
default: ""
required: false
fileName:
description: "Name of the file to download (use '*' to download all assets other than tarball or zipball)"
default: "*"
required: false
tarBall:
description: "Download tarball from assets"
default: "false"
required: false
zipBall:
description: "Download zipball from assets"
default: "false"
required: false
out-file-path:
description: "Relative path under $GITHUB_WORKSPACE to place the downloaded files"
default: "."
required: true
token:
description: "Github token to access private repos"
default: ${{ github.token }}
required: false
github-api-url:
description: "The URL of the Github API, only use this input if you are using Github Enterprise"
default: "https://api.github.com"
required: false
outputs:
tag_name:
description: "The github tag used to download the release"
runs:
using: "node16"
main: "dist/index.js"
branding:
icon: "download"
color: "green"