This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch bazel_pull_request
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/bazel_pull_request by this
push:
new 5418d948c Use pull request to replace pull request target
5418d948c is described below
commit 5418d948c4ef28bd32fc6e5cd1d3e6a4142694be
Author: Li Zhanhui <[email protected]>
AuthorDate: Wed Sep 28 11:32:39 2022 +0800
Use pull request to replace pull request target
---
.bazelrc | 4 ++++
.github/workflows/bazel.yml | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.bazelrc b/.bazelrc
index 8409b108f..c8509cb48 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -71,3 +71,7 @@ build:remote --incompatible_strict_action_env=true
# Set a higher timeout value, just in case.
build:remote --remote_timeout=3600
+
+# Use a pre-configured account, such that we may have pull-request replacing
pull-request-target
+build:remote --remote_header=x-buildbuddy-api-key=FD819nUEY7WjvqmoufsU
+test:remote --remote_header=x-buildbuddy-api-key=FD819nUEY7WjvqmoufsU
\ No newline at end of file
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml
index b91a53b9d..e7a141995 100644
--- a/.github/workflows/bazel.yml
+++ b/.github/workflows/bazel.yml
@@ -1,6 +1,6 @@
name: Build and Run Tests by Bazel
on:
- pull_request_target:
+ pull_request:
types: [opened, reopened, synchronize]
push:
branches:
@@ -17,6 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
- run: bazel build --config=remote
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
+ run: bazel build --config=remote //...
- name: Run Tests
- run: bazel test --config=remote
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
\ No newline at end of file
+ run: bazel test --config=remote --nocache_test_results //...
\ No newline at end of file