File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments