diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 3877848..c78beaf 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest outputs: # https://stackoverflow.com/questions/59175332/using-output-from-a-previous-job-in-a-new-one-in-a-github-action - Version: ${{ steps.gitversion.outputs.SemVer }} + Version: ${{ steps.gitversion.outputs.MajorMinorPatch }} CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }} steps: - uses: actions/checkout@v4 @@ -19,15 +19,15 @@ jobs: fetch-depth: 0 #fetch-depth is needed for GitVersion #Install and calculate the new version with GitVersion - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.2.1 + uses: gittools/actions/gitversion/setup@v4.0.1 with: - versionSpec: 5.x + versionSpec: 6.x - name: Determine Version - uses: gittools/actions/gitversion/execute@v3.2.1 + uses: gittools/actions/gitversion/execute@v4.0.1 id: gitversion # step id used as reference for output values - name: Display GitVersion outputs run: | - echo "Version: ${{ steps.gitversion.outputs.SemVer }}" + echo "Version: ${{ steps.gitversion.outputs.MajorMinorPatch }}" echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}" # checkout the code from this branch, and then test the action from here