https://github.com/joepitt91/action-version-from-github-package
Get the latest version from a GitHub package.
https://github.com/joepitt91/action-version-from-github-package
github-actions github-packages
Last synced: 2 days ago
JSON representation
Get the latest version from a GitHub package.
- Host: GitHub
- URL: https://github.com/joepitt91/action-version-from-github-package
- Owner: joepitt91
- License: gpl-3.0
- Created: 2025-05-23T15:14:01.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-03-09T21:51:21.000Z (5 days ago)
- Last Synced: 2026-03-10T03:52:18.950Z (5 days ago)
- Topics: github-actions, github-packages
- Language: Python
- Homepage: https://github.com/marketplace/actions/get-latest-version-from-github-package
- Size: 938 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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
```yaml
- 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
```