Skip to content

Commit 61d1215

Browse files
authored
Removal of auto-trigger (GoogleCloudPlatform#4981)
2 parents 63c7751 + e47f8a1 commit 61d1215

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/cloud-build/provision/pr-tests.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ locals {
1616
auto_approved_pr_tests = [
1717
"slurm-gcp-v6-simple-job-completion"
1818
]
19+
20+
no_auto_trigger_tests = [
21+
"slurm-gcp-v6-simple-job-completion"
22+
]
1923
}
2024

2125

@@ -33,7 +37,7 @@ resource "google_cloudbuild_trigger" "pr_test" {
3337
owner = "GoogleCloudPlatform"
3438
name = "cluster-toolkit"
3539
pull_request {
36-
branch = ".*"
40+
branch = contains(local.no_auto_trigger_tests, each.key) ? "no-auto-trigger" : ".*"
3741
comment_control = "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"
3842
}
3943
}

0 commit comments

Comments
 (0)