diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 879eff4..6eb2b06 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ stages: Write-Host "##[section]Specific Variable Example:" Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH" Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME" - git fetch origin "$(Build.SourceBranchName)" "$env:BUILD_REPOSITORY_DEFAULTBRANCH" + git fetch origin "$(Build.SourceBranchName)" main $diffResult = git diff --name-only origin/$(Build.Repository.DefaultBranch)...HEAD $folderFound = $false if ([string]::IsNullOrWhiteSpace($diffResult)) {