File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed
eng/common/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,16 @@ steps:
3838 -CspellConfigPath ${{ parameters.CspellConfigPath }}
3939 -ExitWithError:(!$${{ parameters.ContinueOnError }})
4040 pwsh : true
41+ - ${{ if ne('', parameters.ScriptToValidateUpgrade) }} :
42+ - pwsh : |
43+ $changedFiles = ./eng/common/scripts/get-changedfiles.ps1
4144
42- - pwsh : |
43- $changedFiles = ./eng/common/scripts/get-changedfiles.ps1
45+ if ($changedFiles -notcontains 'eng/common/spelling/package-lock.json') {
46+ Write-Host "No changes to cspell package-lock.json detected."
47+ exit 0
48+ }
4449
45- if ($changedFiles -notcontains 'eng/common/spelling/package-lock.json') {
46- Write-Host "No changes to cspell package-lock.json detected."
47- exit 0
48- }
49-
50- Write-Host "Detected change to cspell package-lock.json. Running upgrade verification."
51- & '${{ parameters.ScriptToValidateUpgrade }}'
52- displayName: Verify cspell upgrade
53- condition: >-
54- and(
55- succeeded(),
56- ne('true', variables['Skip.SpellCheck']),
57- ne('', parameters.ScriptToValidateUpgrade)
58- )
50+ Write-Host "Detected change to cspell package-lock.json. Running upgrade verification."
51+ & '${{ parameters.ScriptToValidateUpgrade }}'
52+ displayName: Verify cspell upgrade
53+ condition: and(succeeded(), ne('true', variables['Skip.SpellCheck']))
You can’t perform that action at this time.
0 commit comments