Github action to fetch release data. Supports querying by
- release ID
- latest release
- tag name
- tag name for draft releases
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Get latest release
id: latest_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
latest: true
token
: The Github token used for authentication. Required,${{ github.token }}
can be used usually.owner
: Name of the owner of the repo, taken from current repo by default.repo
: Name of the repository, taken from current repo by default.id
: The ID to identify the release.tag_name
: Tag name to identify the release.latest
: Will fetch the latest release if set to true.draft
: Set to true if you are looking for an unpublished draft release. In this casetag_name
must also be set.
One of id
, tag_name
or latest
inputs must be provided
id
: The ID of the Releaseurl
: The release urlhtml_url
: The url users can navigate to in order to view the releaseassets_url
: The release assets urlupload_url
: The url for uploading assets to the releasename
: The release nametag_name
: The git tag associated with the releasedraft
: Is draftprerelease
: Is pre-releasetarget_commitish
: The release was create to which target branchcreated_at
: Created datepublished_at
: Published date