Skip to content

Commit 307a86d

Browse files
authored
bk: only if targeting main (#617)
1 parent 21badd9 commit 307a86d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
2727

2828
steps:
2929
- label: "Trigger fpm-pipeline"
30-
if: build.pull_request.id != null
30+
if: build.pull_request.id != null && build.env("BUILDKITE_PULL_REQUEST_BASE_BRANCH") == "main"
3131
plugins:
3232
- monorepo-diff#v1.0.1:
3333
diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD"
@@ -60,7 +60,7 @@ steps:
6060

6161
steps:
6262
- label: "Trigger llvm-apple-pipeline"
63-
if: build.pull_request.id != null
63+
if: build.pull_request.id != null && build.env("BUILDKITE_PULL_REQUEST_BASE_BRANCH") == "main"
6464
plugins:
6565
- monorepo-diff#v1.0.1:
6666
diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD"

0 commit comments

Comments
 (0)