Update Azure pipeline conditions to respect canceled status (#6763)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: benbp <1020379+benbp@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2025-10-02 13:21:14 -07:00 committed by GitHub
parent 5b3bf66882
commit cfc9354584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ jobs:
inputs:
targetPath: $(System.DefaultWorkingDirectory)/${{ parameters.Language }}-profile.zip
artifactName: ${{ parameters.Language }}-profile.zip
condition: ${{ parameters.Profile }}
condition: and(succeeded(), ${{ parameters.Profile }})
- template: /eng/common/TestResources/remove-test-resources.yml
parameters:

View File

@ -10,7 +10,7 @@ steps:
$apiChangeDetectRequestUrl = "https://apiview.dev/api/PullRequests/CreateAPIRevisionIfAPIHasChanges"
echo "##vso[task.setvariable variable=ApiChangeDetectRequestUrl]$apiChangeDetectRequestUrl"
displayName: "Set API change detect request URL"
condition: and(${{ parameters.Condition}}, eq(variables['ApiChangeDetectRequestUrl'], ''))
condition: and(succeeded(), ${{ parameters.Condition}}, eq(variables['ApiChangeDetectRequestUrl'], ''))
- task: Powershell@2
inputs: