Get latest release including draft and prerelease. Return information about release.
Difference to other actions which returns latest release is that, this action get access to hiden draft releases.
Required Token to github repository to get access to hidden releases (draft releases)
Exclude some types of releases separated by |
. Examples: draft|prerelease
, prerelease|release
, draft
Numbers of releases which will be searched. Default value 100
.
Founded release Id
Founded release name
Founded release tag
Founded release creation date
Founded release draft type flag (boolean: true
, false
).
Founded release prerelease type flag (boolean: true
, false
).
API URL to release
URL to HTML page of release
steps:
- uses: actions/checkout@v1
- name: "call action"
id: last_release
uses: InsonusK/[email protected]
with:
myToken: ${{ github.token }}
exclude_types: "release"
view_top: 1
- name: "Print result"
run: |
echo "id: ${{ steps.last_release.outputs.id }}"
echo "name: ${{ steps.last_release.outputs.name }}"
echo "tag_name: ${{ steps.last_release.outputs.tag_name }}"
echo "created_at: ${{ steps.last_release.outputs.created_at }}"
echo "draft: ${{ steps.last_release.outputs.draft }}"
echo "prerelease: ${{ steps.last_release.outputs.prerelease }}"
echo "url: ${{ steps.last_release.outputs.url }}"
echo "html_url: ${{ steps.last_release.outputs.html_url }}"