Skip to content

Commit

Permalink
set overrideConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 3, 2024
1 parent 342f6c2 commit 95d8faa
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .azure/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ stages:
inputs:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
- pwsh: |
echo "FullSemVer (fullSemVer) : $(fullSemVer)"
Expand Down Expand Up @@ -66,7 +67,8 @@ stages:
inputs:
useConfigFile: true
configFilePath: 'GitVersion_v6.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
- pwsh: |
echo "FullSemVer (fullSemVer) : $(fullSemVer)"
Expand Down
3 changes: 2 additions & 1 deletion .azure/different-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ stages:
inputs:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
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
Expand Down
3 changes: 2 additions & 1 deletion .azure/same-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
inputs:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
- pwsh: |
echo "Major (major) : $(major)"
Expand Down
3 changes: 2 additions & 1 deletion .azure/same-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ stages:
inputs:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
- job: Use_GitVersion_v5_without_prefix
dependsOn:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
with:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
id: version_step # step id used as reference for output values
- run: |
echo "FullSemVer (env.fullSemVer) : ${{ env.fullSemVer }}"
Expand Down Expand Up @@ -54,7 +55,8 @@ jobs:
with:
useConfigFile: true
configFilePath: 'GitVersion_v6.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
id: version_step # step id used as reference for output values
- run: |
echo "FullSemVer (env.fullSemVer) : ${{ env.fullSemVer }}"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/different-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
with:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
id: version_step # step id used as reference for output values

Use_GitVersion_v5_without_prefix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/same-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
with:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'
overrideConfig: |
update-build-number=false
id: version_step # step id used as reference for output values

- run: |
Expand Down

0 comments on commit 95d8faa

Please sign in to comment.