Skip to content

Commit d137960

Browse files
trigger when PR branch contains run-e2e
1 parent 8bcad01 commit d137960

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.pipelines/azure_pipeline_mergedbranches.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ extends:
898898
# Deploy runs when Build succeeds OR when Build is skipped with valid overrides
899899
# This stage runs when:
900900
# 1. Direct push to ci_prod or zane/ci-agent-auto-deploy or branches containing 'run-e2e'
901-
# 2. PR from zane/ci-agent-auto-deploy branch
901+
# 2. PR from zane/ci-agent-auto-deploy branch OR PR from branch containing 'run-e2e'
902902
condition: |
903903
and(
904904
or(
@@ -907,7 +907,10 @@ extends:
907907
contains(variables['Build.SourceBranch'], 'run-e2e'),
908908
and(
909909
eq(variables['Build.Reason'], 'PullRequest'),
910-
eq(variables['System.PullRequest.SourceBranch'], 'refs/heads/zane/ci-agent-auto-deploy')
910+
or(
911+
eq(variables['System.PullRequest.SourceBranch'], 'refs/heads/zane/ci-agent-auto-deploy'),
912+
contains(variables['System.PullRequest.SourceBranch'], 'run-e2e')
913+
)
911914
)
912915
),
913916
or(

0 commit comments

Comments
 (0)