A tiny GitHub action to fetch the latest GitHub release for a given repository
| Parameter | Description | Required | Default |
|---|---|---|---|
github_token |
A Github token, usually ${{ github.token }}. |
N | ${{ github.token }} |
repo_path |
Provide a "owner/repo" string for fetching from a different repo. | N | The current repo |
urlThe HTTP URL for this releaseassets_url: The REST API HTTP URL for this release's assetsupload_url: The REST API HTTP URL for uploading to this releasehtml_url: The REST API HTTP URL for this releaseid: ''node_id: The unique identifier for accessing this release in the GraphQL APItag_name: The name of the release's Git tagtarget_commitish: ''name: The title of the releasebody: The description of the releasedraft: Whether or not the release is a draftprerelease: Whether or not the release is a prereleaseauthor_id: ''author_node_id: The unique identifier for accessing this release's author in the GraphQL APIauthor_url: The REST API HTTP URL for this release's authorauthor_login: The username used to login.author_html_url: The HTTP URL for this release's authorauthor_type: ''author_site_admin: Whether or not this user is a site administrator
steps:
- id: fetch-latest-release
uses: thebritican/fetch-latest-release@v1
with:
github_token: ${{ github.token }}