Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Fetch Github Release Asset

Actions
Downloads an asset from a Github release
0.06
Star (118)

Tags

 (1)

Fetch GH Release Asset

This action downloads an asset from a Github release. Private repos are supported.

Inputs

repo

The org/repo. Defaults to the current repo.

version

The release version to fetch from. Default "latest". If not "latest", this has to be in the form tags/<tag_name> or <release_id>.

file

Required The name of the file in the release.

target

Optional target file path. Only supports paths to subdirectories of the Github Actions workspace directory

token

Optional Personal Access Token to access repository. You need to either specify this or use the secrets.GITHUB_TOKEN environment variable.

Outputs

version

The version number of the release tag. Can be used to deploy for example to itch.io

Example usage

uses: dsaltares/fetch-gh-release-asset@master
with:
  repo: "dsaltares/godot-wild-jam-18"
  version: "latest"
  file: "plague-linux.zip"
  target: "subdir/plague-linux.zip"
  token: ${{ secrets.YOUR_TOKEN }}

Support

This action only supports Linux runners as this is a docker container action. If you encounter Error: Container action is only supported on Linux then you are using non-linux runner.

Fetch Github Release Asset is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Downloads an asset from a Github release
0.06

Tags

 (1)

Fetch Github Release Asset is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.