Skip to content

paweb88/fetch-gh-release-asset-composite

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fetch GH Release Asset

This action downloads an asset from a GitHub release and provides some release details as output. Private repos are supported. I modify orginally @dsaltares/fetch-gh-release-asset to work on composite action insteed docker.

When you use self-hosted github runner in docker, shared directory with workspace doesn't work. So this is why i decade to use composite action.

thx dsaltares for orginal bash script!

Inputs

token

Required The GitHub token. Typically this will be ${{ secrets.GITHUB_TOKEN }}

file

Required The name of the file to be downloaded.

repo

The org/repo containing the release.

version

The release version to fetch from in the form tags/<tag_name> or <release_id>. Defaults to latest.

target

Target file path. Only supports paths to subdirectories of the GitHub Actions workspace directory

Outputs

version

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

name

Also called a title of a release. Defaults to the same value as version if not specified when creating a release.

body

The body (description) of a release.

Example usage

uses: paweb88/fetch-gh-release-asset-composite@master
with:
  repo: "paweb88/fetch-gh-release-asset"
  version: "tags/v0.1.18"
  file: "plague-linux.zip"
  target: "subdir/plague-linux.zip"
  token: ${{ secrets.GITHUB_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.

About

GitHub Action for fetch release asset in composite action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages