diff --git a/.github/workflows/_version.yml b/.github/workflows/_version.yml index f26280a..77f2b26 100644 --- a/.github/workflows/_version.yml +++ b/.github/workflows/_version.yml @@ -71,23 +71,29 @@ jobs: versionSpec: '5.x' # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/execute/usage-examples.md#example-5 + # For a list of all GitVersion Version Variables, see https://gitversion.net/docs/reference/variables # pwsh> dotnet-gitversion | ConvertFrom-Json - name: Use GitVersion to determine version id: gitversion # e.g. steps.gitversion.outputs. uses: gittools/actions/gitversion/execute@v0 - # For a list of all GitVersion Version Variables, see https://gitversion.net/docs/reference/variables - - run: | - echo 'Save the GitVersion outputs to a file.' - echo "${{ steps.gitversion.outputs }}" > version.txt - echo "SEMVER=${{ steps.gitversion.outputs.semVer }}" >> $GITHUB_ENV + # - run: | + # echo 'Save the GitVersion outputs to a file.' + # echo "Major: ${{ steps.gitversion.outputs.major }}" > version.txt + # echo "Minor: ${{ steps.gitversion.outputs.minor }}" >> version.txt + # echo "Patch: ${{ steps.gitversion.outputs.patch }}" >> version.txt + # echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" >> version.txt + # echo 'Semantic Version: ${{ steps.gitversion.outputs.semVer }}' >> version.txt + # echo 'Full Semantic Version: ${{ steps.gitversion.outputs.fullSemVer }}' >> version.txt + # echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}" >> version.txt + # echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}" >> version.txt + # echo 'CommitDate: ${{ steps.gitversion.outputs.commitDate }}' >> version.txt # https://github.com/actions/upload-artifact - name: Upload version artifacts uses: actions/upload-artifact@v3 with: path: | - version.txt release-notes.txt # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary