mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-02 08:46:05 +03:00
a3cbfc11eebbb78b3b756c8e1e79ea72f0f569d6
* Bump the npm-development group across 1 directory with 7 updates Bumps the npm-development group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.12.12` | `20.14.8` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `7.10.0` | `7.14.1` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `7.10.0` | `7.14.1` | | [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) | `28.5.0` | `28.6.0` | | [prettier](https://github.com/prettier/prettier) | `3.2.5` | `3.3.2` | | [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.1.2` | `29.1.5` | | [typescript](https://github.com/Microsoft/TypeScript) | `5.4.5` | `5.5.2` | Updates `@types/node` from 20.12.12 to 20.14.8 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `@typescript-eslint/eslint-plugin` from 7.10.0 to 7.14.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.14.1/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 7.10.0 to 7.14.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.14.1/packages/parser) Updates `eslint-plugin-jest` from 28.5.0 to 28.6.0 - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v28.5.0...v28.6.0) Updates `prettier` from 3.2.5 to 3.3.2 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.2) Updates `ts-jest` from 29.1.2 to 29.1.5 - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.1.2...v29.1.5) Updates `typescript` from 5.4.5 to 5.5.2 - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.2) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-development - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development ... Signed-off-by: dependabot[bot] <support@github.com> * Add build artifact --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Robin Raju <robinraju@users.noreply.github.com>
Github Release Downloader
A Github Action to download assets from Github release. It can download specified files from both private and public repositories.
Usage
- uses: robinraju/release-downloader@v1.10
with:
# The source repository path.
# Expected format {owner}/{repo}
# Default: ${{ github.repository }}
repository: ''
# A flag to set the download target as latest release
# The default value is 'false'
latest: true
# A flag to download from prerelease. It should be combined with latest flag.
# The default value is 'false'
preRelease: true
# The github tag. e.g: v1.0.1
# Download assets from a specific tag/version
tag: ''
# The release id to download files from
releaseId: ''
# The name of the file to download.
# Use this field only to specify filenames other than tarball or zipball, if any.
# Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..)
fileName: ''
# Download the attached tarball (*.tar.gz)
tarBall: true
# Download the attached zipball (*.zip)
zipBall: true
# Relative path under $GITHUB_WORKSPACE to place the downloaded file(s)
# It will create the target directory automatically if not present
# eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads
out-file-path: ''
# A flag to set if the downloaded assets are archives and should be extracted
# Checks all downloaded files if they end with zip, tar or tar.gz and extracts them, if true.
# Prints a warning if enabled but file is not an archive - but does not fail.
extract: false
# Github access token to download files from private repositories
# https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
# eg: token: ${{ secrets.MY_TOKEN }}
token: ''
# The URL of the Github API, only use this input if you are using Github Enterprise
# Default: "https://api.github.com"
# Use http(s)://[hostname]/api/v3 to access the API for GitHub Enterprise Server
github-api-url: ''
Output variables
tag_nameit outputs the tag used to download a release.
This variable can be used by other actions as an input as follows
${{steps.<step-id>.outputs.tag_name}}
-
release_nameit outputs the name/title of the releaseIt can be used as follows
${{steps.<step-id>.outputs.release_name}}
-
downloaded_filesit outputs an array of downloaded filesIt can be used as follows
${{ fromJson(steps.<step-id>.outputs.downloaded_files)[0] }}
Scenarios
Download asset from the latest release in the current repository
- uses: robinraju/release-downloader@v1.10
with:
latest: true
fileName: 'foo.zip'
Download asset from a specific release version
- uses: robinraju/release-downloader@v1.10
with:
repository: 'owner/repo'
tag: 'v1.0.0'
fileName: 'foo.zip'
Download tarball and zipball
- uses: robinraju/release-downloader@v1.10
with:
repository: 'owner/repo'
latest: true
tarBall: true
zipBall: true
Remove the
latestflag and specifytagif you want to download from a different release.
Download multiple assets
- uses: robinraju/release-downloader@v1.10
with:
repository: 'owner/repo'
latest: true
fileName: 'foo.zip'
tarBall: true
zipBall: true
Download all assets if more than one files are available
- uses: robinraju/release-downloader@v1.10
with:
repository: 'owner/repo'
latest: true
fileName: '*'
Download assets using wildcard pattern
- uses: robinraju/release-downloader@v1.10
with:
repository: 'owner/repo'
latest: true
fileName: '*.deb'
Download a release using its id
- uses: robinraju/release-downloader@v1.10
with:
releaseId: '123123'
fileName: 'foo.zip'
Download and extracts archives
- uses: robinraju/release-downloader@v1.10
with:
fileName: 'foo.zip'
latest: true
extract: true
Download latest prerelease
- uses: robinraju/release-downloader@v1.10
with:
repository: 'owner/repo'
fileName: 'foo.zip'
latest: true
preRelease: true
Languages
TypeScript
92.8%
JavaScript
7.2%