mr-version/Calculate Versions
Calculate semantic versions for projects using Mister.Version
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| projects | Glob pattern or list of project files to version (e.g., "src/**/*.csproj" or comma-separated paths) | no | **/*.csproj |
| repository-path | Path to the Git repository root | no | . |
| prerelease-type | Prerelease type for main/dev branches (none, alpha, beta, rc) | no | none |
| tag-prefix | Prefix for version tags | no | v |
| force-version | Force a specific version for all projects | no | — |
| dependencies | Comma-separated list of dependency paths to track for changes | no | — |
| output-format | Output format (json, yaml, text) | no | json |
| fail-on-no-changes | Fail the action if no projects have version changes | no | false |
| update-project-properties | Update version properties in project files | no | false |
| write-mrversion-props | Write MrVersion.props file in each project directory | no | false |
| config-file | Path to mr-version.yml configuration file (auto-detected if not specified) | no | — |
| dry-run | Run in dry-run mode (show what would be done without making changes) | no | false |
| output-version-information | Display the version information output as part of the job summary. | no | false |
| include-test-projects | Include test projects in the version calculation results | no | false |
Outputs
| name | description |
|---|---|
| projects | JSON array of project version information |
| changed-projects | JSON array of projects with version changes |
| has-changes | Whether any projects have version changes |
| summary | Human-readable summary of version calculations |
| version-map | JSON map of project names/paths to their calculated versions |
| version | The calculated version of the first changed project (if any) |
| major | Major version number of the first changed project |
| minor | Minor version number of the first changed project |
| patch | Patch version number of the first changed project |
| prerelease | Prerelease version string of the first changed project (if any) |
| has-validation-errors | Whether any projects have validation errors |
| has-validation-warnings | Whether any projects have validation warnings |
| validation-errors-count | Number of projects with validation errors |
| validation-warnings-count | Number of projects with validation warnings |