pwshrc/Determine Version

Determines the version of a build-in-progress by invoking GitVersion and saving an artifact of the result.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Dec 16, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: pwshrc/actions-determine-version@a947e78bb786365b0ac5a154d2bfd78c90e4b469 # v0.9.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
modeOne of 'upload' or 'download'.yes
gitversion-versionThe version of GitVersion to use.yes6.1
versionjson-nameThe name of the JSON file containing the generated version information.yesversion.json
versionjson-pathThe path of the directory containing the JSON file of the generated version information.yes./out
versionjson-artifact-nameThe name of the artifact which contains the JSON file of the generated version information.yesversion-json
namedescription
AssemblySemFileVerAssemblySemFileVer
AssemblySemVerAssemblySemVer
BranchNameBranchName
BuildMetaDataBuildMetaData
CommitDateCommitDate
CommitsSinceVersionSourceCommitsSinceVersionSource
EscapedBranchNameEscapedBranchName
FullBuildMetaDataFullBuildMetaData
FullSemVerFullSemVer
InformationalVersionInformationalVersion
MajorMajor
MajorMinorPatchMajorMinorPatch
MinorMinor
PatchPatch
PreReleaseLabelPreReleaseLabel
PreReleaseLabelWithDashPreReleaseLabelWithDash
PreReleaseNumberPreReleaseNumber
PreReleaseTagPreReleaseTag
PreReleaseTagWithDashPreReleaseTagWithDash
SemVerSemVer
ShaSha
ShortShaShortSha
UncommittedChangesUncommittedChanges
VersionSourceShaVersionSourceSha
WeightedPreReleaseNumberWeightedPreReleaseNumber
BuildMetaDataPaddedBuildMetaDataPadded
LegacySemVerLegacySemVer
LegacySemVerPaddedLegacySemVerPadded
NuGetVersionV2NuGetVersionV2
NuGetVersionNuGetVersion
NuGetPreReleaseTagV2NuGetPreReleaseTagV2
NuGetPreReleaseTagNuGetPreReleaseTag
CommitsSinceVersionSourcePaddedCommitsSinceVersionSourcePadded
versionjson-nameThe name of the JSON file containing the generated version information.
versionjson-pathThe path of the directory containing the JSON file of the generated version information.
versionjson-artifact-nameThe name of the artifact to which contains the JSON file of the generated version information.
versionjson-filepathThe path to the file containing the version information.