mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-04 08:54:36 +03:00
* add outputs variable 'downloaded_files' * make all files can get by indexer * use dot '.' to access array member instead of [] * add 'f' prefix * build dist/index.js * use '_' to access files array member * add outputs description * remove outputs like 'downloaded_file_*' * try fix build error in example expression * Fix typo, move usage instructions to README
61 lines
1.9 KiB
YAML
61 lines
1.9 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
|
|
extract:
|
|
description: "If the downladed assets should be extracted to `out-file-path`. Supports tar, tar.gz and zip"
|
|
default: "false"
|
|
required: false
|
|
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"
|
|
downloaded_files:
|
|
description: "The array of downloaded files, useful when using wildcard '*' to download multiple files."
|
|
|
|
runs:
|
|
using: "node16"
|
|
main: "dist/index.js"
|
|
branding:
|
|
icon: "download"
|
|
color: "green"
|