Skip to content

Commit fc2194a

Browse files
authored
Merge pull request #2498 from microsoft/dpaul-SpellCheckUpdate
Update Spell Check to not run on Internal
2 parents dbac36a + 0e4cfad commit fc2194a

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.build/SpellCheck.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ function DoSpellCheck {
3030
$cspellModule = npm -g ls cspell | Select-String "cspell@"
3131

3232
if ([string]::IsNullOrEmpty($cspellModule)) {
33+
34+
if ($env:RepositoryName -ne "microsoft/CSS-Exchange") {
35+
Write-Host "Not running on public pipeline. You must manually run SpellCheck to verify this step will pass. Skipping over."
36+
# Need to exit to allow the pipeline to continue
37+
exit 0
38+
}
39+
3340
Write-Host "Could not install cspell. Please install cspell and try again."
3441
exit 1
3542
}

azure-pipeline-merge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ extends:
2626
displayName: "Docs Check"
2727
- pwsh: .\.build\SpellCheck.ps1
2828
displayName: "Spell Check"
29+
env:
30+
RepositoryName: $(Build.Repository.Name)
2931
- pwsh: |
3032
cd .\.build
3133
.\CodeFormatter.ps1 -Branch $env:TargetBranchName

0 commit comments

Comments
 (0)