Skip to content

Commit 6f392c8

Browse files
azure-sdkscbedd
andauthored
Sync eng/common directory with azure-sdk-tools for PR 3362 (Azure#18248)
* spell-check skippable by commit * suceededOrFailed -> succeededOrFailed Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
1 parent 8594056 commit 6f392c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/common/pipelines/templates/steps/check-spelling.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# TargetBranch - Target ref (e.g. main) to compare to create file change
66
# list.
77
# CspellConfigPath - Path to cspell.json config location
8+
#
9+
# This check recognizes the setting of variable "Skip.SpellCheck"
10+
# if set to 'true', spellchecking will not be invoked.
811

912
parameters:
1013
ContinueOnError: true
@@ -13,12 +16,14 @@ parameters:
1316
steps:
1417
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
1518
- task: NodeTool@0
19+
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
1620
inputs:
1721
versionSpec: 16.x
1822
displayName: Use Node.js 16.x
1923

2024
- task: PowerShell@2
2125
displayName: Check spelling (cspell)
26+
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
2227
continueOnError: ${{ parameters.ContinueOnError }}
2328
inputs:
2429
targetType: filePath

0 commit comments

Comments
 (0)