Skip to content

nmcc/actions-gitversion

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitversion Action

This action runs gitversion executable from a local path and exposes the versioning attributes as action outputs

It assumes that there is an executable of GitVersion in the local repo.

Inputs

path-to-gitversion

** Required **: The path to the local GitVersion executable.

Outputs

The output is aligned with GitVersion output variables:

  • Major
  • Minor
  • Patch
  • PreReleaseTag
  • PreReleaseTagWithDash
  • PreReleaseLabel
  • PreReleaseNumber
  • WeightedPreReleaseNumber
  • BuildMetaData
  • BuildMetaDataPadded
  • FullBuildMetaData
  • MajorMinorPatch
  • SemVer
  • LegacySemVer
  • LegacySemVerPadded
  • AssemblySemVer
  • AssemblySemFileVer
  • FullSemVer
  • InformationalVersion
  • BranchName
  • Sha
  • ShortSha
  • NuGetVersionV2
  • NuGetVersion
  • NuGetPreReleaseTagV2

Example

steps:
  - name: GitVersion
    id: gitversion
    uses: nmcc/actions-gitversion@v1
    with:
      path-to-gitversion: packages/GitVersion.CommandLine/tools/GitVersion.exe
  
  - name: Create Release
    uses: actions/create-release@v1
    with:
        tag_name: ${{ steps.gitversion.outputs.SemVer }}
  

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published