/fetch-latest-release

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

fetch-latest-release

A tiny GitHub action to fetch the latest GitHub release for a given repository

Inputs

Parameter Description Required Default
github_token A Github token, usually ${{ github.token }}. Y N/A
repo_path Provide a "owner/repo" string for fetching from a different repo. N The current repo

Output

  • url The HTTP URL for this release
  • assets_url: The REST API HTTP URL for this release's assets
  • upload_url: The REST API HTTP URL for uploading to this release
  • html_url: The REST API HTTP URL for this release
  • id: ''
  • node_id: The unique identifier for accessing this release in the GraphQL API
  • tag_name: The name of the release's Git tag
  • target_commitish: ''
  • name: The title of the release.
  • draft: Whether or not the release is a draft
  • author_id: ''
  • author_node_id: The unique identifier for accessing this release's author in the GraphQL API
  • author_url: The REST API HTTP URL for this release's author
  • author_login: The username used to login.
  • author_html_url: The HTTP URL for this release's author
  • author_type: ''
  • author_site_admin: Whether or not this user is a site administrator.
  • sha: The sha hash of the release

Usage

steps:
  - id: fetch-latest-release
    uses: thebritican/fetch-latest-release@v1
    with:
      github_token: ${{ github.token }}