Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
db9a8fa1a3
commit
102185864a
@ -34,7 +34,7 @@ stages:
|
|||||||
Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH"
|
Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH"
|
||||||
Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME"
|
Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME"
|
||||||
git fetch origin "$(Build.SourceBranchName)" main
|
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
|
$folderFound = $false
|
||||||
if ([string]::IsNullOrWhiteSpace($diffResult)) {
|
if ([string]::IsNullOrWhiteSpace($diffResult)) {
|
||||||
Write-Host "No diff results found."
|
Write-Host "No diff results found."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user