Skip to content

Commit 62b7aad

Browse files
authored
enable automatic cloud build trigger for OFE path (#5428)
1 parent 908e7f9 commit 62b7aad

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tools/cloud-build/provision/pr-ofe-test.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ resource "google_cloudbuild_trigger" "pr_ofe_test" {
2020
description = "OFE test while submitting PR"
2121

2222
filename = "tools/cloud-build/daily-tests/builds/ofe-deployment.yaml"
23-
approval_config {
24-
approval_required = true
25-
}
2623

2724
github {
2825
owner = "GoogleCloudPlatform"
@@ -32,5 +29,11 @@ resource "google_cloudbuild_trigger" "pr_ofe_test" {
3229
comment_control = "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"
3330
}
3431
}
32+
33+
# ONLY trigger when changes happen in this path
34+
included_files = [
35+
"community/front-end/ofe/**"
36+
]
37+
3538
include_build_logs = "INCLUDE_BUILD_LOGS_WITH_STATUS"
3639
}

0 commit comments

Comments
 (0)