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

GitHub Action

Fetch Github Release Asset

0.0.4

Fetch Github Release Asset

download-cloud

Fetch Github Release Asset

Downloads an asset from a Github release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Fetch Github Release Asset

uses: dsaltares/[email protected]

Learn more about this action in dsaltares/fetch-gh-release-asset

Choose a version

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".

file

Required The name of the file in the release.

token

Optional Personal Access Token to access external repository

Example usage

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