pwshrc/Determine Version
Determines the version of a build-in-progress by invoking GitVersion and saving an artifact of the result.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Dec 16, 2024
- License
- MIT
Pinned Snippet
uses: pwshrc/actions-determine-version@a947e78bb786365b0ac5a154d2bfd78c90e4b469 # v0.9.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| mode | One of 'upload' or 'download'. | yes | — |
| gitversion-version | The version of GitVersion to use. | yes | 6.1 |
| versionjson-name | The name of the JSON file containing the generated version information. | yes | version.json |
| versionjson-path | The path of the directory containing the JSON file of the generated version information. | yes | ./out |
| versionjson-artifact-name | The name of the artifact which contains the JSON file of the generated version information. | yes | version-json |
Outputs
| name | description |
|---|---|
| AssemblySemFileVer | AssemblySemFileVer |
| AssemblySemVer | AssemblySemVer |
| BranchName | BranchName |
| BuildMetaData | BuildMetaData |
| CommitDate | CommitDate |
| CommitsSinceVersionSource | CommitsSinceVersionSource |
| EscapedBranchName | EscapedBranchName |
| FullBuildMetaData | FullBuildMetaData |
| FullSemVer | FullSemVer |
| InformationalVersion | InformationalVersion |
| Major | Major |
| MajorMinorPatch | MajorMinorPatch |
| Minor | Minor |
| Patch | Patch |
| PreReleaseLabel | PreReleaseLabel |
| PreReleaseLabelWithDash | PreReleaseLabelWithDash |
| PreReleaseNumber | PreReleaseNumber |
| PreReleaseTag | PreReleaseTag |
| PreReleaseTagWithDash | PreReleaseTagWithDash |
| SemVer | SemVer |
| Sha | Sha |
| ShortSha | ShortSha |
| UncommittedChanges | UncommittedChanges |
| VersionSourceSha | VersionSourceSha |
| WeightedPreReleaseNumber | WeightedPreReleaseNumber |
| BuildMetaDataPadded | BuildMetaDataPadded |
| LegacySemVer | LegacySemVer |
| LegacySemVerPadded | LegacySemVerPadded |
| NuGetVersionV2 | NuGetVersionV2 |
| NuGetVersion | NuGetVersion |
| NuGetPreReleaseTagV2 | NuGetPreReleaseTagV2 |
| NuGetPreReleaseTag | NuGetPreReleaseTag |
| CommitsSinceVersionSourcePadded | CommitsSinceVersionSourcePadded |
| versionjson-name | The name of the JSON file containing the generated version information. |
| versionjson-path | The path of the directory containing the JSON file of the generated version information. |
| versionjson-artifact-name | The name of the artifact to which contains the JSON file of the generated version information. |
| versionjson-filepath | The path to the file containing the version information. |