diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 991367226d3..a13a19dd07c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,9 +53,8 @@ stages: clean: true submodules: true - pwsh: | - $run = $true + $run = $false if ("$(Build.Reason)" -eq "PullRequest") { - $run = $false try { $labels = Invoke-RestMethod "https://api.github.com/repos/$(Build.Repository.Name)/issues/$(System.PullRequest.PullRequestNumber)/labels" -ErrorAction Stop if ($labels.name -contains "run-offload-tests") { $run = $true }