Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 3362 (Azure#24599)
Browse files Browse the repository at this point in the history
* spell-check skippable by commit

* suceededOrFailed -> succeededOrFailed

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
  • Loading branch information
azure-sdk and scbedd authored May 25, 2022
1 parent 8db4dbd commit 78e796e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eng/common/pipelines/templates/steps/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 78e796e

Please sign in to comment.