Files
release-downloader/action.yml
T
Naveen PrashanthandRobin Raju d049b594b6 Specify different extract path (#768)
* Update action.yml

* Update download-settings.ts

* Update input-helper.ts

* Update main.ts

* Update action.yml

* Add files via upload

* Update main.test.ts

* Update README.md

* Consolidate extract path and output path inputs, add tests

* Remove dist

---------

Co-authored-by: Robin Raju <robinraju@users.noreply.github.com>
2026-04-18 19:15:02 +01:00

86 lines
2.3 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
preRelease:
description:
'A flag to download from prerelease. It should be combined with latest
flag'
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: false
extract:
description:
'If the downloaded assets should be extracted. Supports tar, tar.gz and
zip'
default: 'false'
required: false
extract-path:
description:
'Path where downloaded assets should be extracted. Defaults to
`out-file-path` if not set.'
default: ''
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'
release_name:
description: 'The release name / title'
downloaded_files:
description:
"The array of downloaded files, useful when using wildcard '*' to download
multiple files."
runs:
using: 'node24'
main: 'dist/index.js'
branding:
icon: 'download'
color: 'green'