lfreleng-actions/🔍 Version Extract Action
Extract version strings from various software project types
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| path | Path to search for project files or path to a specific file | no | . |
| config | Path to custom configuration file | no | "" |
| format | Output format (text or json) | no | text |
| verbose | Enable verbose output | no | false |
| fail-on-error | Fail the action if version cannot be extracted | no | true |
| json_format | JSON output format: pretty, minimised (default: pretty) | no | pretty |
| dynamic-fallback | Enable dynamic versioning fallback to Git tags | no | true |
Outputs
| name | description |
|---|---|
| version | Extracted version string |
| project-type | Detected project type |
| subtype | Project subtype (e.g., npm, gradle) |
| file | File where version was found |
| success | Whether version extraction was successful |
| matched-by | Regex pattern or method that matched the version |
| version-source | Version source type (static or dynamic-git-tag) |
| git-tag | Original git tag (for dynamic versioning) |
| error | Error message (when success=false) |