Sync eng/common directory with azure-sdk-tools for PR 3362 (#3676)
* spell-check skippable by commit * suceededOrFailed -> succeededOrFailed Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
This commit is contained in:
parent
933486385a
commit
c755acac03
@ -5,6 +5,9 @@
|
||||
# TargetBranch - Target ref (e.g. main) to compare to create file change
|
||||
# list.
|
||||
# CspellConfigPath - Path to cspell.json config location
|
||||
#
|
||||
# This check recognizes the setting of variable "Skip.SpellCheck"
|
||||
# if set to 'true', spellchecking will not be invoked.
|
||||
|
||||
parameters:
|
||||
ContinueOnError: true
|
||||
@ -13,12 +16,14 @@ parameters:
|
||||
steps:
|
||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- task: NodeTool@0
|
||||
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
|
||||
inputs:
|
||||
versionSpec: 16.x
|
||||
displayName: Use Node.js 16.x
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Check spelling (cspell)
|
||||
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
|
||||
continueOnError: ${{ parameters.ContinueOnError }}
|
||||
inputs:
|
||||
targetType: filePath
|
||||
|
||||
Loading…
Reference in New Issue
Block a user