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:
Azure SDK Bot 2022-05-25 13:51:35 -07:00 committed by GitHub
parent 933486385a
commit c755acac03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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