Allows you to get release information by: release id, tag, commit SHA (current commit or specified).
If release not found finishes with error.
Specify 1 input from the list to search release by:
releaseId
Release Id (number).tag
Tag name.commitSha
SHA of commit. Can be used to find a draft release.releaseName
Release name. Returns most recent found. Can be used to find a draft release.latest
Set1
ortrue
to get the latest non-draft release.searchPrefix
will walk all releases and return the latest that has a matching prefix
If no inputs specified, the action will try to get release for the current commit SHA.
searchLimit
Optional, default:90
. If you usecommitSha
orreleaseName
inputs you can also specify how many releases action should retrieve to perform a search. Specify more than 90 if you age going to search for old releases and less if you want to speed up the search.
You should set GITHUB_TOKEN
env variable to enable action to access GitHub API. See example.
Values from API response object:
html_url
upload_url
can be used to upload assetstarball_url
zipball_url
id
tag_name
target_commitish
name
body
draft
containstrue
orfalse
string valueprerelease
containstrue
orfalse
string valuecreated_at
published_at
- uses: cardinalby/git-get-release-action@v1.1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag: '1.2.3'