Skip to content

Commit 32d976d

Browse files
committed
Work CI-CD
- Fix conditions to not run tasks on update dependents. ***NO_CI***
1 parent 43b69f6 commit 32d976d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ jobs:
209209

210210
- task: Cache@2
211211
displayName: Cache NuGet packages
212+
condition: >-
213+
and(
214+
succeeded(),
215+
eq(variables['UPDATE_DEPENDENTS'], 'false')
216+
)
212217
inputs:
213218
key: 'nuget | "$(Agent.OS)" | **/packages.lock.json, !bin/**'
214219
restoreKeys: |
@@ -336,7 +341,11 @@ jobs:
336341
337342
Find-ReplaceInFile -filePath $fileToReplace -sourceString $sourceString -targetString $instrumentKey
338343
displayName: Replace intrument key
339-
condition: succeeded()
344+
condition: >-
345+
and(
346+
succeeded(),
347+
eq(variables['UPDATE_DEPENDENTS'], 'false')
348+
)
340349
341350
- task: CopyFiles@1
342351
condition: >-

0 commit comments

Comments
 (0)