Skip to content

Commit bb96282

Browse files
committed
test
1 parent 36726e6 commit bb96282

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.ado/apple-pr.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: $(Date:yyyyMMdd).$(Rev:.r)
44
variables:
55
- template: variables/vars.yml
66

7+
78
trigger: none # will disable CI builds entirely
89

910
pr:
@@ -238,6 +239,20 @@ jobs:
238239
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
239240
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
240241

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+
241256
- template: templates/apple-job-publish.yml
242257
parameters:
243258
build_type: 'dry-run'

.ado/variables/vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ variables:
33
slice_name: 'Xcode_14.2'
44
xcode_version: '/Applications/Xcode_14.2.app'
55
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

0 commit comments

Comments
 (0)