Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Jojo Aquino 2025-04-21 08:12:07 +00:00
parent 63ea1a6c68
commit 327e9063e5

View File

@ -34,7 +34,7 @@ stages:
Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH"
Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME"
git fetch origin "$(Build.SourceBranchName)" main
$diffResult = git diff --name-only origin/$(Build.Repository.DefaultBranch)...HEAD
$diffResult = git diff --name-only origin/main...HEAD
$folderFound = $false
if ([string]::IsNullOrWhiteSpace($diffResult)) {
Write-Host "No diff results found."