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
.
Name of the repo without owner's name.
The username of the owner who owns the repo.
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
).
steps:
- uses: actions/checkout@v1
- name: "call action"
id: last_release
uses: Dmagine/get-latest-release@master
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_atd }}"
echo "draft: ${{ steps.last_release.outputs.draft }}"
echo "prerelease: ${{ steps.last_release.outputs.prerelease }}"