Skip to content

Get Latest Version from GitHub Package

Actions
Get the latest version from a GitHub package
v2.0.2
Latest
Star (0)

GitHub Action - Get Latest Version from GitHub Package

Get the latest version from a GitHub package.

Inputs

Input Description Required Default
token The token to authenticate to GitHub with. Yes
owner The owner of the package. yes
package_name The name of the package to query. Yes
package_type The type of package to query (one of: npm, maven, rubygems, docker, nuget, container) container
greater_equal_version The minimum version to accept, e.g. 2.0.0. No None
less_than_version The version to accept versions less than, e.g. 3.0.0. No None

Outputs

Output Description Example
tag The tag for the latest version. v2.5.3
version The latest version number. 2.5.3

Example

      - name: Get Latest Matrix Authentication Service Version
        id: version
        uses: joepitt91/action-version-from-github-package@v2
        with:
          token: ${{ secrets.PACKAGE_READER_PAT }}
          owner: element-hq
          package_name: matrix-authentication-service

Get Latest Version from GitHub Package is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Get the latest version from a GitHub package
v2.0.2
Latest

Get Latest Version from GitHub Package is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.