actions-marketplace-validations/Check Python Version
Check the release tag matches the library version before deploy
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version_file_path | Path to python file containing the version number string | yes | — |
| version_pattern | Custom regular expression to find version with, defaults to `(?i)^(__version__|VERSION) *= *([\'"])v?(?P<version>.+?)\2` | no | — |
| test_github_ref | Version to check, defaults to using `GITHUB_REF` - this is mostly for testing | no | — |
| skip_env_check | Set to "true" to skip environment variable (e.g. `GITHUB_REF`, or `input.test_github_ref`) check, mostly useful when you want to use outputs in later steps | no | — |
Outputs
| name | description |
|---|---|
| IS_PRERELEASE | Either `'true'` or `'false'` whether the version is a pre-release |
| VERSION | The "pretty" version string |
| VERSION_MAJOR_MINOR | Major and minor version numbers, e.g. `1.2.3` would output `1.2` |