File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ name: $(Date:yyyyMMdd).$(Rev:.r)
4
4
variables :
5
5
- template : variables/vars.yml
6
6
7
+
7
8
trigger : none # will disable CI builds entirely
8
9
9
10
pr :
@@ -238,6 +239,20 @@ jobs:
238
239
submodules : recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
239
240
persistCredentials : true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
240
241
242
+ # Check TestVar is true
243
+ - ${{ if eq(variables['TestVar'], true) }} :
244
+ - task : CmdLine@2
245
+ displayName : TestVar True
246
+ inputs :
247
+ script : |
248
+ echo "TestVar is true"
249
+ - ${{ else }} :
250
+ - task : CmdLine@2
251
+ displayName : TestVar False
252
+ inputs :
253
+ script : |
254
+ echo "TestVar is false"
255
+
241
256
- template : templates/apple-job-publish.yml
242
257
parameters :
243
258
build_type : ' dry-run'
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ variables:
3
3
slice_name : ' Xcode_14.2'
4
4
xcode_version : ' /Applications/Xcode_14.2.app'
5
5
isMain : $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]
6
- isReleaseBranch : $[endsWith(variables['Build.SourceBranchName'], '-stable')]
6
+ isReleaseBranch : $[endsWith(variables['Build.SourceBranchName'], '-stable')]
7
+ TestVar : True
You can’t perform that action at this time.
0 commit comments