Skip to content

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

License

Notifications You must be signed in to change notification settings

livestorm/fetch-latest-release

 
 

Repository files navigation

fetch-latest-release

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 }}. N ${{ github.token }}
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
  • body: The description of the release
  • draft: Whether or not the release is a draft
  • prerelease: Whether or not the release is a prerelease
  • 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

Usage

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%