forked from GitTools/actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-7.yml
68 lines (56 loc) · 2.34 KB
/
example-7.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
trigger: none
variables:
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: 'true'
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: 'true'
jobs:
- job: GitVersion_v6_same_job
displayName: GitVersion v6 (same job)
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
fetchDepth: 0
- task: gitversion/[email protected]
displayName: Install GitVersion
inputs:
versionSpec: '6.1.x'
- task: gitversion/[email protected]
displayName: Determine Version
name: version_step # step id used as reference for output values
inputs:
overrideConfig: |
update-build-number=false
- pwsh: |
echo "FullSemVer (fullSemVer) : $(fullSemVer)"
displayName: Display GitVersion variables (without prefix)
- pwsh: |
echo "FullSemVer (GitVersion_FullSemVer) : $(GitVersion_FullSemVer)"
displayName: Display GitVersion variables (with prefix)
- pwsh: |
echo "FullSemVer (version_step.fullSemVer) : $(version_step.fullSemVer)"
displayName: Display GitVersion outputs (step output without prefix)
- pwsh: |
echo "FullSemVer (version_step.GitVersion_FullSemVer) : $(version_step.GitVersion_FullSemVer)"
displayName: Display GitVersion outputs (step output with prefix)
- pwsh: |
echo "FullSemVer (env:myvar_fullSemVer) : $env:myvar_fullSemVer"
displayName: Display mapped local env (pwsh - outputs without prefix)
env:
myvar_fullSemVer: $(version_step.fullSemVer)
- pwsh: |
echo "FullSemVer (env:myvar_GitVersion_FullSemVer) : $env:myvar_GitVersion_FullSemVer"
displayName: Display mapped local env (pwsh - outputs with prefix)
env:
myvar_GitVersion_FullSemVer: $(version_step.GitVersion_FullSemVer)
- bash: |
echo "FullSemVer (myvar_fullSemVer) : $myvar_fullSemVer"
displayName: Display mapped local env (bash - outputs without prefix)
env:
myvar_fullSemVer: $(version_step.fullSemVer)
- bash: |
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $myvar_GitVersion_FullSemVer"
displayName: Display mapped local env (bash - outputs with prefix)
env:
myvar_GitVersion_FullSemVer: $(version_step.GitVersion_FullSemVer)