mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-04 08:54:36 +03:00
* feat: get release by api id * fmt * tests: add fail case for release identification * read releaseId * Add releaseId to download settings
55 lines
1.6 KiB
YAML
55 lines
1.6 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
|
|
releaseId:
|
|
description: "The release id to download the file from"
|
|
default: ""
|
|
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"
|