From 1be4fce9cde6ebcfbbf637a7d84cec869b8aaaf1 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Thu, 25 Jul 2024 12:22:03 +0200 Subject: [PATCH] use v6 of GitVersion --- .azure/different-stage.yml | 36 ++++----- .azure/same-job.yml | 8 +- .azure/same-stage.yml | 40 +++++----- .github/workflows/different-job.yml | 120 ++++++++++++++-------------- .github/workflows/same-job.yml | 8 +- 5 files changed, 106 insertions(+), 106 deletions(-) diff --git a/.azure/different-stage.yml b/.azure/different-stage.yml index edbc308..231a358 100644 --- a/.azure/different-stage.yml +++ b/.azure/different-stage.yml @@ -2,8 +2,8 @@ stages: - stage: GitVersion_Stage displayName: Use GitVersion jobs: - - job: GitVersion_v5_Job - displayName: GitVersion v5 + - job: GitVersion_v6_Job + displayName: GitVersion v6 pool: vmImage: 'ubuntu-latest' steps: @@ -13,7 +13,7 @@ stages: - task: gittools.gittools.setup-gitversion-task.gitversion/setup@2.0.0 displayName: Install GitVersion inputs: - versionSpec: '5.x' + versionSpec: '6.x' includePrerelease: false - task: gittools.gittools.execute-gitversion-task.gitversion/execute@2.0.0 @@ -21,24 +21,24 @@ stages: displayName: Use GitVersion inputs: useConfigFile: true - configFilePath: 'GitVersion_v5.yml' + configFilePath: 'GitVersion_v6.yml' overrideConfig: | update-build-number=false - stage: GitVersion_without_prefix - condition: and(succeeded(), eq(dependencies.GitVersion_Stage.outputs['GitVersion_v5_Job.version_step.branchName'], 'main')) # use in condition + condition: and(succeeded(), eq(dependencies.GitVersion_Stage.outputs['GitVersion_v6_Job.version_step.branchName'], 'main')) # use in condition dependsOn: - GitVersion_Stage displayName: Use Output from previous stage jobs: - - job: Use_GitVersion_v5_without_prefix + - job: Use_GitVersion_v6_without_prefix displayName: Use Output from previous stage (without prefix) variables: - myvar_major: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.major'] ] # set in variables - myvar_minor: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.minor'] ] - myvar_patch: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.patch'] ] - myvar_semVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.semVer'] ] - myvar_fullSemVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.fullSemVer'] ] + myvar_major: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.major'] ] # set in variables + myvar_minor: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.minor'] ] + myvar_patch: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.patch'] ] + myvar_semVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.semVer'] ] + myvar_fullSemVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.fullSemVer'] ] pool: vmImage: 'windows-latest' steps: @@ -84,19 +84,19 @@ stages: localvar_fullSemVer: $(myvar_fullSemVer) - stage: GitVersion_with_prefix - condition: and(succeeded(), eq(dependencies.GitVersion_Stage.outputs['GitVersion_v5_Job.version_step.GitVersion_BranchName'], 'main')) # use in condition + condition: and(succeeded(), eq(dependencies.GitVersion_Stage.outputs['GitVersion_v6_Job.version_step.GitVersion_BranchName'], 'main')) # use in condition dependsOn: - GitVersion_Stage displayName: Use Output from previous stage (with prefix) jobs: - - job: Use_GitVersion_v5_with_prefix + - job: Use_GitVersion_v6_with_prefix displayName: Use Output from previous stage (with prefix) variables: - myvar_GitVersion_Major: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.GitVersion_Major'] ] # set in variables - myvar_GitVersion_Minor: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.GitVersion_Minor'] ] - myvar_GitVersion_Patch: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.GitVersion_Patch'] ] - myvar_GitVersion_SemVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.GitVersion_SemVer'] ] - myvar_GitVersion_FullSemVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v5_Job.outputs['version_step.GitVersion_FullSemVer'] ] + myvar_GitVersion_Major: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.GitVersion_Major'] ] # set in variables + myvar_GitVersion_Minor: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.GitVersion_Minor'] ] + myvar_GitVersion_Patch: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.GitVersion_Patch'] ] + myvar_GitVersion_SemVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.GitVersion_SemVer'] ] + myvar_GitVersion_FullSemVer: $[ stageDependencies.GitVersion_Stage.GitVersion_v6_Job.outputs['version_step.GitVersion_FullSemVer'] ] pool: vmImage: 'windows-latest' steps: diff --git a/.azure/same-job.yml b/.azure/same-job.yml index 9e25fb9..abe0f2b 100644 --- a/.azure/same-job.yml +++ b/.azure/same-job.yml @@ -1,6 +1,6 @@ jobs: - - job: GitVersion_v5_same_job - displayName: GitVersion v5 (same job) + - job: GitVersion_v6_same_job + displayName: GitVersion v6 (same job) strategy: matrix: windows-latest: @@ -18,7 +18,7 @@ jobs: - task: gittools.gittools.setup-gitversion-task.gitversion/setup@2.0.0 displayName: Install GitVersion inputs: - versionSpec: '5.x' + versionSpec: '6.x' includePrerelease: false - task: gittools.gittools.execute-gitversion-task.gitversion/execute@2.0.0 @@ -26,7 +26,7 @@ jobs: displayName: Use GitVersion inputs: useConfigFile: true - configFilePath: 'GitVersion_v5.yml' + configFilePath: 'GitVersion_v6.yml' overrideConfig: | update-build-number=false diff --git a/.azure/same-stage.yml b/.azure/same-stage.yml index 63f2730..6cc7f60 100644 --- a/.azure/same-stage.yml +++ b/.azure/same-stage.yml @@ -2,8 +2,8 @@ stages: - stage: GitVersion displayName: Use GitVersion jobs: - - job: GitVersion_v5_Job - displayName: GitVersion v5 + - job: GitVersion_v6_Job + displayName: GitVersion v6 pool: vmImage: 'ubuntu-latest' steps: @@ -13,7 +13,7 @@ stages: - task: gittools.gittools.setup-gitversion-task.gitversion/setup@2.0.0 displayName: Install GitVersion inputs: - versionSpec: '5.x' + versionSpec: '6.x' includePrerelease: false - task: gittools.gittools.execute-gitversion-task.gitversion/execute@2.0.0 @@ -21,21 +21,21 @@ stages: displayName: Use GitVersion inputs: useConfigFile: true - configFilePath: 'GitVersion_v5.yml' + configFilePath: 'GitVersion_v6.yml' overrideConfig: | update-build-number=false - - job: Use_GitVersion_v5_without_prefix + - job: Use_GitVersion_v6_without_prefix dependsOn: - - GitVersion_v5_Job + - GitVersion_v6_Job displayName: Use Output from previous job (without prefix) - condition: and(succeeded(), eq(dependencies.GitVersion_v5_Job.outputs['version_step.branchName'], 'main')) # use in condition + condition: and(succeeded(), eq(dependencies.GitVersion_v6_Job.outputs['version_step.branchName'], 'main')) # use in condition variables: - myvar_major: $[ dependencies.GitVersion_v5_Job.outputs['version_step.major'] ] # set in variables - myvar_minor: $[ dependencies.GitVersion_v5_Job.outputs['version_step.minor'] ] - myvar_patch: $[ dependencies.GitVersion_v5_Job.outputs['version_step.patch'] ] - myvar_semVer: $[ dependencies.GitVersion_v5_Job.outputs['version_step.semVer'] ] - myvar_fullSemVer: $[ dependencies.GitVersion_v5_Job.outputs['version_step.fullSemVer'] ] + myvar_major: $[ dependencies.GitVersion_v6_Job.outputs['version_step.major'] ] # set in variables + myvar_minor: $[ dependencies.GitVersion_v6_Job.outputs['version_step.minor'] ] + myvar_patch: $[ dependencies.GitVersion_v6_Job.outputs['version_step.patch'] ] + myvar_semVer: $[ dependencies.GitVersion_v6_Job.outputs['version_step.semVer'] ] + myvar_fullSemVer: $[ dependencies.GitVersion_v6_Job.outputs['version_step.fullSemVer'] ] pool: vmImage: 'windows-latest' steps: @@ -80,17 +80,17 @@ stages: localvar_semVer: $(myvar_semVer) localvar_fullSemVer: $(myvar_fullSemVer) - - job: Use_GitVersion_v5_with_prefix + - job: Use_GitVersion_v6_with_prefix dependsOn: - - GitVersion_v5_Job + - GitVersion_v6_Job displayName: Use Output from previous job (with prefix) - condition: and(succeeded(), eq(dependencies.GitVersion_v5_Job.outputs['version_step.GitVersion_BranchName'], 'main')) # use in condition + condition: and(succeeded(), eq(dependencies.GitVersion_v6_Job.outputs['version_step.GitVersion_BranchName'], 'main')) # use in condition variables: - myvar_GitVersion_Major: $[ dependencies.GitVersion_v5_Job.outputs['version_step.GitVersion_Major'] ] # set in variables - myvar_GitVersion_Minor: $[ dependencies.GitVersion_v5_Job.outputs['version_step.GitVersion_Minor'] ] - myvar_GitVersion_Patch: $[ dependencies.GitVersion_v5_Job.outputs['version_step.GitVersion_Patch'] ] - myvar_GitVersion_SemVer: $[ dependencies.GitVersion_v5_Job.outputs['version_step.GitVersion_SemVer'] ] - myvar_GitVersion_FullSemVer: $[ dependencies.GitVersion_v5_Job.outputs['version_step.GitVersion_FullSemVer'] ] + myvar_GitVersion_Major: $[ dependencies.GitVersion_v6_Job.outputs['version_step.GitVersion_Major'] ] # set in variables + myvar_GitVersion_Minor: $[ dependencies.GitVersion_v6_Job.outputs['version_step.GitVersion_Minor'] ] + myvar_GitVersion_Patch: $[ dependencies.GitVersion_v6_Job.outputs['version_step.GitVersion_Patch'] ] + myvar_GitVersion_SemVer: $[ dependencies.GitVersion_v6_Job.outputs['version_step.GitVersion_SemVer'] ] + myvar_GitVersion_FullSemVer: $[ dependencies.GitVersion_v6_Job.outputs['version_step.GitVersion_FullSemVer'] ] pool: vmImage: 'windows-latest' steps: diff --git a/.github/workflows/different-job.yml b/.github/workflows/different-job.yml index 7766985..f7fba06 100644 --- a/.github/workflows/different-job.yml +++ b/.github/workflows/different-job.yml @@ -2,8 +2,8 @@ name: different-job on: [ push, pull_request, workflow_dispatch ] jobs: - GitVersion_v5_Job: - name: GitVersion v5 Job + GitVersion_v6_Job: + name: GitVersion v6 Job runs-on: ubuntu-latest outputs: branchName: ${{ steps.version_step.outputs.branchName }} @@ -26,28 +26,28 @@ jobs: - uses: gittools/actions/gitversion/setup@v2.0.0 name: Install GitVersion with: - versionSpec: '5.x' + versionSpec: '6.x' includePrerelease: false - uses: gittools/actions/gitversion/execute@v2.0.0 name: Use GitVersion with: useConfigFile: true - configFilePath: 'GitVersion_v5.yml' + configFilePath: 'GitVersion_v6.yml' overrideConfig: | update-build-number=false id: version_step # step id used as reference for output values - Use_GitVersion_v5_without_prefix: + Use_GitVersion_v6_without_prefix: name: Use Output from previous job (without prefix) runs-on: windows-latest - needs: [ GitVersion_v5_Job ] - if: contains(needs.GitVersion_v5_Job.outputs['branchName'], 'main') + needs: [ GitVersion_v6_Job ] + if: contains(needs.GitVersion_v6_Job.outputs['branchName'], 'main') env: - myvar_major: ${{ needs.GitVersion_v5_Job.outputs.major }} - myvar_minor: ${{ needs.GitVersion_v5_Job.outputs.minor }} - myvar_patch: ${{ needs.GitVersion_v5_Job.outputs.patch }} - myvar_semVer: ${{ needs.GitVersion_v5_Job.outputs.semVer }} - myvar_fullSemVer: ${{ needs.GitVersion_v5_Job.outputs.fullSemVer }} + myvar_major: ${{ needs.GitVersion_v6_Job.outputs.major }} + myvar_minor: ${{ needs.GitVersion_v6_Job.outputs.minor }} + myvar_patch: ${{ needs.GitVersion_v6_Job.outputs.patch }} + myvar_semVer: ${{ needs.GitVersion_v6_Job.outputs.semVer }} + myvar_fullSemVer: ${{ needs.GitVersion_v6_Job.outputs.fullSemVer }} steps: - run: | echo "Major (env:myvar_major) : $env:myvar_major" @@ -67,11 +67,11 @@ jobs: name: Use local env mapped from output (pwsh - outputs without prefix) shell: pwsh env: - localvar_major: ${{ needs.GitVersion_v5_Job.outputs.major }} - localvar_minor: ${{ needs.GitVersion_v5_Job.outputs.minor }} - localvar_patch: ${{ needs.GitVersion_v5_Job.outputs.patch }} - localvar_semVer: ${{ needs.GitVersion_v5_Job.outputs.semVer }} - localvar_fullSemVer: ${{ needs.GitVersion_v5_Job.outputs.fullSemVer }} + localvar_major: ${{ needs.GitVersion_v6_Job.outputs.major }} + localvar_minor: ${{ needs.GitVersion_v6_Job.outputs.minor }} + localvar_patch: ${{ needs.GitVersion_v6_Job.outputs.patch }} + localvar_semVer: ${{ needs.GitVersion_v6_Job.outputs.semVer }} + localvar_fullSemVer: ${{ needs.GitVersion_v6_Job.outputs.fullSemVer }} - run: | echo "Major (env:localvar_major) : $env:localvar_major" @@ -89,11 +89,11 @@ jobs: localvar_fullSemVer: ${{ env.myvar_fullSemVer }} - run: | - echo "Major (needs.GitVersion_v5_Job.outputs.major) : ${{ needs.GitVersion_v5_Job.outputs.major }}" - echo "Minor (needs.GitVersion_v5_Job.outputs.minor) : ${{ needs.GitVersion_v5_Job.outputs.minor }}" - echo "Patch (needs.GitVersion_v5_Job.outputs.patch) : ${{ needs.GitVersion_v5_Job.outputs.patch }}" - echo "SemVer (needs.GitVersion_v5_Job.outputs.semVer) : ${{ needs.GitVersion_v5_Job.outputs.semVer }}" - echo "FullSemVer (needs.GitVersion_v5_Job.outputs.fullSemVer) : ${{ needs.GitVersion_v5_Job.outputs.fullSemVer }}" + echo "Major (needs.GitVersion_v6_Job.outputs.major) : ${{ needs.GitVersion_v6_Job.outputs.major }}" + echo "Minor (needs.GitVersion_v6_Job.outputs.minor) : ${{ needs.GitVersion_v6_Job.outputs.minor }}" + echo "Patch (needs.GitVersion_v6_Job.outputs.patch) : ${{ needs.GitVersion_v6_Job.outputs.patch }}" + echo "SemVer (needs.GitVersion_v6_Job.outputs.semVer) : ${{ needs.GitVersion_v6_Job.outputs.semVer }}" + echo "FullSemVer (needs.GitVersion_v6_Job.outputs.fullSemVer) : ${{ needs.GitVersion_v6_Job.outputs.fullSemVer }}" name: Use direct output from previous job (pwsh - outputs without prefix) shell: pwsh @@ -115,11 +115,11 @@ jobs: name: Use local env mapped from output (bash - outputs without prefix) shell: bash env: - localvar_major: ${{ needs.GitVersion_v5_Job.outputs.major }} - localvar_minor: ${{ needs.GitVersion_v5_Job.outputs.minor }} - localvar_patch: ${{ needs.GitVersion_v5_Job.outputs.patch }} - localvar_semVer: ${{ needs.GitVersion_v5_Job.outputs.semVer }} - localvar_fullSemVer: ${{ needs.GitVersion_v5_Job.outputs.fullSemVer }} + localvar_major: ${{ needs.GitVersion_v6_Job.outputs.major }} + localvar_minor: ${{ needs.GitVersion_v6_Job.outputs.minor }} + localvar_patch: ${{ needs.GitVersion_v6_Job.outputs.patch }} + localvar_semVer: ${{ needs.GitVersion_v6_Job.outputs.semVer }} + localvar_fullSemVer: ${{ needs.GitVersion_v6_Job.outputs.fullSemVer }} - run: | echo "Major (localvar_major) : $localvar_major" @@ -137,25 +137,25 @@ jobs: localvar_fullSemVer: ${{ env.myvar_fullSemVer }} - run: | - echo "Major (needs.GitVersion_v5_Job.outputs.major) : ${{ needs.GitVersion_v5_Job.outputs.major }}" - echo "Minor (needs.GitVersion_v5_Job.outputs.minor) : ${{ needs.GitVersion_v5_Job.outputs.minor }}" - echo "Patch (needs.GitVersion_v5_Job.outputs.patch) : ${{ needs.GitVersion_v5_Job.outputs.patch }}" - echo "SemVer (needs.GitVersion_v5_Job.outputs.semVer) : ${{ needs.GitVersion_v5_Job.outputs.semVer }}" - echo "FullSemVer (needs.GitVersion_v5_Job.outputs.fullSemVer) : ${{ needs.GitVersion_v5_Job.outputs.fullSemVer }}" + echo "Major (needs.GitVersion_v6_Job.outputs.major) : ${{ needs.GitVersion_v6_Job.outputs.major }}" + echo "Minor (needs.GitVersion_v6_Job.outputs.minor) : ${{ needs.GitVersion_v6_Job.outputs.minor }}" + echo "Patch (needs.GitVersion_v6_Job.outputs.patch) : ${{ needs.GitVersion_v6_Job.outputs.patch }}" + echo "SemVer (needs.GitVersion_v6_Job.outputs.semVer) : ${{ needs.GitVersion_v6_Job.outputs.semVer }}" + echo "FullSemVer (needs.GitVersion_v6_Job.outputs.fullSemVer) : ${{ needs.GitVersion_v6_Job.outputs.fullSemVer }}" name: Use direct output from previous job (bash - outputs without prefix) shell: bash - Use_GitVersion_v5_with_prefix: + Use_GitVersion_v6_with_prefix: name: Use Output from previous job (with prefix) runs-on: windows-latest - needs: [ GitVersion_v5_Job ] - if: contains(needs.GitVersion_v5_Job.outputs['GitVersion_BranchName'], 'main') + needs: [ GitVersion_v6_Job ] + if: contains(needs.GitVersion_v6_Job.outputs['GitVersion_BranchName'], 'main') env: - myvar_GitVersion_Major: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Major }} - myvar_GitVersion_Minor: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Minor }} - myvar_GitVersion_Patch: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Patch }} - myvar_GitVersion_SemVer: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_SemVer }} - myvar_GitVersion_FullSemVer: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer }} + myvar_GitVersion_Major: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Major }} + myvar_GitVersion_Minor: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Minor }} + myvar_GitVersion_Patch: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Patch }} + myvar_GitVersion_SemVer: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_SemVer }} + myvar_GitVersion_FullSemVer: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer }} steps: - run: | echo "Major (env:myvar_GitVersion_Major) : $env:myvar_GitVersion_Major" @@ -175,11 +175,11 @@ jobs: name: Use local env mapped from output (pwsh - outputs with prefix) shell: pwsh env: - localvar_major: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Major }} - localvar_minor: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Minor }} - localvar_patch: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Patch }} - localvar_semVer: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_SemVer }} - localvar_fullSemVer: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer }} + localvar_major: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Major }} + localvar_minor: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Minor }} + localvar_patch: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Patch }} + localvar_semVer: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_SemVer }} + localvar_fullSemVer: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer }} - run: | echo "Major (env:localvar_major) : $env:localvar_major" @@ -197,11 +197,11 @@ jobs: localvar_fullSemVer: ${{ env.myvar_GitVersion_FullSemVer }} - run: | - echo "Major (needs.GitVersion_v5_Job.outputs.GitVersion_Major) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Major }}" - echo "Minor (needs.GitVersion_v5_Job.outputs.GitVersion_Minor) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Minor }}" - echo "Patch (needs.GitVersion_v5_Job.outputs.GitVersion_Patch) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Patch }}" - echo "SemVer (needs.GitVersion_v5_Job.outputs.GitVersion_SemVer) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_SemVer }}" - echo "FullSemVer (needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer }}" + echo "Major (needs.GitVersion_v6_Job.outputs.GitVersion_Major) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Major }}" + echo "Minor (needs.GitVersion_v6_Job.outputs.GitVersion_Minor) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Minor }}" + echo "Patch (needs.GitVersion_v6_Job.outputs.GitVersion_Patch) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Patch }}" + echo "SemVer (needs.GitVersion_v6_Job.outputs.GitVersion_SemVer) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_SemVer }}" + echo "FullSemVer (needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer }}" name: Use direct output from previous job (pwsh - outputs with prefix) shell: pwsh @@ -223,11 +223,11 @@ jobs: name: Use local env mapped from output (bash - outputs with prefix) shell: bash env: - localvar_major: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Major }} - localvar_minor: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Minor }} - localvar_patch: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Patch }} - localvar_semVer: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_SemVer }} - localvar_fullSemVer: ${{ needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer }} + localvar_major: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Major }} + localvar_minor: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Minor }} + localvar_patch: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Patch }} + localvar_semVer: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_SemVer }} + localvar_fullSemVer: ${{ needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer }} - run: | echo "Major (localvar_major) : $localvar_major" @@ -245,10 +245,10 @@ jobs: localvar_fullSemVer: ${{ env.myvar_GitVersion_FullSemVer }} - run: | - echo "Major (needs.GitVersion_v5_Job.outputs.GitVersion_Major) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Major }}" - echo "Minor (needs.GitVersion_v5_Job.outputs.GitVersion_Minor) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Minor }}" - echo "Patch (needs.GitVersion_v5_Job.outputs.GitVersion_Patch) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_Patch }}" - echo "SemVer (needs.GitVersion_v5_Job.outputs.GitVersion_SemVer) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_SemVer }}" - echo "FullSemVer (needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer) : ${{ needs.GitVersion_v5_Job.outputs.GitVersion_FullSemVer }}" + echo "Major (needs.GitVersion_v6_Job.outputs.GitVersion_Major) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Major }}" + echo "Minor (needs.GitVersion_v6_Job.outputs.GitVersion_Minor) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Minor }}" + echo "Patch (needs.GitVersion_v6_Job.outputs.GitVersion_Patch) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_Patch }}" + echo "SemVer (needs.GitVersion_v6_Job.outputs.GitVersion_SemVer) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_SemVer }}" + echo "FullSemVer (needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer) : ${{ needs.GitVersion_v6_Job.outputs.GitVersion_FullSemVer }}" name: Use direct output from previous job (bash - outputs with prefix) shell: bash \ No newline at end of file diff --git a/.github/workflows/same-job.yml b/.github/workflows/same-job.yml index f46d4a9..81c7f5d 100644 --- a/.github/workflows/same-job.yml +++ b/.github/workflows/same-job.yml @@ -2,8 +2,8 @@ name: same-job on: [ push, pull_request, workflow_dispatch ] jobs: - GitVersion_v5_same_job: - name: GitVersion v5 (same job) + GitVersion_v6_same_job: + name: GitVersion v6 (same job) runs-on: ${{ matrix.os }} strategy: matrix: @@ -16,13 +16,13 @@ jobs: - uses: gittools/actions/gitversion/setup@v2.0.0 name: Install GitVersion with: - versionSpec: '5.x' + versionSpec: '6.x' includePrerelease: false - uses: gittools/actions/gitversion/execute@v2.0.0 name: Use GitVersion with: useConfigFile: true - configFilePath: 'GitVersion_v5.yml' + configFilePath: 'GitVersion_v6.yml' overrideConfig: | update-build-number=false id: version_step # step id used as reference for output values