|
28 | 28 | runs-on: ${{ matrix.os }}
|
29 | 29 | strategy:
|
30 | 30 | matrix:
|
31 |
| -# os: [ ubuntu-latest, windows-latest, macos-latest ] |
32 | 31 | os: [ ubuntu-latest ]
|
33 | 32 | steps:
|
34 | 33 | - name: Checkout
|
|
46 | 45 | - name: Determine Version
|
47 | 46 | id: gitversion
|
48 | 47 | uses: gittools/actions/gitversion/[email protected]
|
| 48 | + with: |
| 49 | + updateAssemblyInfo: true |
| 50 | + - name: Display GitVersion outputs |
| 51 | + run: | |
| 52 | + echo "Major: ${{ steps.gitversion.outputs.major }}" |
| 53 | + echo "Minor: ${{ steps.gitversion.outputs.minor }}" |
| 54 | + echo "Patch: ${{ steps.gitversion.outputs.patch }}" |
| 55 | + echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}" |
| 56 | + echo "PreReleaseTagWithDash: ${{ steps.gitversion.outputs.preReleaseTagWithDash }}" |
| 57 | + echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}" |
| 58 | + echo "PreReleaseNumber: ${{ steps.gitversion.outputs.preReleaseNumber }}" |
| 59 | + echo "WeightedPreReleaseNumber: ${{ steps.gitversion.outputs.weightedPreReleaseNumber }}" |
| 60 | + echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}" |
| 61 | + echo "BuildMetaDataPadded: ${{ steps.gitversion.outputs.buildMetaDataPadded }}" |
| 62 | + echo "FullBuildMetaData: ${{ steps.gitversion.outputs.fullBuildMetaData }}" |
| 63 | + echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" |
| 64 | + echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" |
| 65 | + echo "LegacySemVer: ${{ steps.gitversion.outputs.legacySemVer }}" |
| 66 | + echo "LegacySemVerPadded: ${{ steps.gitversion.outputs.legacySemVerPadded }}" |
| 67 | + echo "AssemblySemVer: ${{ steps.gitversion.outputs.assemblySemVer }}" |
| 68 | + echo "AssemblySemFileVer: ${{ steps.gitversion.outputs.assemblySemFileVer }}" |
| 69 | + echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}" |
| 70 | + echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}" |
| 71 | + echo "BranchName: ${{ steps.gitversion.outputs.branchName }}" |
| 72 | + echo "EscapedBranchName: ${{ steps.gitversion.outputs.escapedBranchName }}" |
| 73 | + echo "Sha: ${{ steps.gitversion.outputs.sha }}" |
| 74 | + echo "ShortSha: ${{ steps.gitversion.outputs.shortSha }}" |
| 75 | + echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" |
| 76 | + echo "NuGetVersion: ${{ steps.gitversion.outputs.nuGetVersion }}" |
| 77 | + echo "NuGetPreReleaseTagV2: ${{ steps.gitversion.outputs.nuGetPreReleaseTagV2 }}" |
| 78 | + echo "NuGetPreReleaseTag: ${{ steps.gitversion.outputs.nuGetPreReleaseTag }}" |
| 79 | + echo "VersionSourceSha: ${{ steps.gitversion.outputs.versionSourceSha }}" |
| 80 | + echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}" |
| 81 | + echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}" |
| 82 | + echo "UncommittedChanges: ${{ steps.gitversion.outputs.uncommittedChanges }}" |
| 83 | + echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}" |
| 84 | + - name: Display SemVer |
| 85 | + run: | |
| 86 | + echo "SemVer: $GITVERSION_SEMVER" |
49 | 87 | - name: Restore
|
50 | 88 | run: dotnet restore
|
51 | 89 | - name: Build
|
|
0 commit comments