Skip to content

Commit

Permalink
add gitversion console output
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Nov 7, 2023
1 parent 5f2d3b5 commit 62bb024
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
Expand All @@ -41,6 +36,46 @@ jobs:
useConfigFile: true
configFilePath: gitversion.yml

- name: Display GitVersion variables (without prefix)
run: |
echo "Major: ${{ env.major }}"
echo "Minor: ${{ env.minor }}"
echo "Patch: ${{ env.patch }}"
echo "PreReleaseTag: ${{ env.preReleaseTag }}"
echo "PreReleaseTagWithDash: ${{ env.preReleaseTagWithDash }}"
echo "PreReleaseLabel: ${{ env.preReleaseLabel }}"
echo "PreReleaseNumber: ${{ env.preReleaseNumber }}"
echo "WeightedPreReleaseNumber: ${{ env.weightedPreReleaseNumber }}"
echo "BuildMetaData: ${{ env.buildMetaData }}"
echo "BuildMetaDataPadded: ${{ env.buildMetaDataPadded }}"
echo "FullBuildMetaData: ${{ env.fullBuildMetaData }}"
echo "MajorMinorPatch: ${{ env.majorMinorPatch }}"
echo "SemVer: ${{ env.semVer }}"
echo "LegacySemVer: ${{ env.legacySemVer }}"
echo "LegacySemVerPadded: ${{ env.legacySemVerPadded }}"
echo "AssemblySemVer: ${{ env.assemblySemVer }}"
echo "AssemblySemFileVer: ${{ env.assemblySemFileVer }}"
echo "FullSemVer: ${{ env.fullSemVer }}"
echo "InformationalVersion: ${{ env.informationalVersion }}"
echo "BranchName: ${{ env.branchName }}"
echo "EscapedBranchName: ${{ env.escapedBranchName }}"
echo "Sha: ${{ env.sha }}"
echo "ShortSha: ${{ env.shortSha }}"
echo "NuGetVersionV2: ${{ env.nuGetVersionV2 }}"
echo "NuGetVersion: ${{ env.nuGetVersion }}"
echo "NuGetPreReleaseTagV2: ${{ env.nuGetPreReleaseTagV2 }}"
echo "NuGetPreReleaseTag: ${{ env.nuGetPreReleaseTag }}"
echo "VersionSourceSha: ${{ env.versionSourceSha }}"
echo "CommitsSinceVersionSource: ${{ env.commitsSinceVersionSource }}"
echo "CommitsSinceVersionSourcePadded: ${{ env.commitsSinceVersionSourcePadded }}"
echo "UncommittedChanges: ${{ env.uncommittedChanges }}"
echo "CommitDate: ${{ env.commitDate }}"
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'

- name: Build solution
run: dotnet build >
--configuration Release
Expand Down

0 comments on commit 62bb024

Please sign in to comment.