summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <klishinm@vmware.com>2022-10-24 20:03:30 +0400
committerGitHub <noreply@github.com>2022-10-24 20:03:30 +0400
commit0d7bf2bad9c6f6bbecc481ab698e725096c731da (patch)
treeb466e08d54f9838ac438644c95f7597781c7a2e5
parenta3583165cf3f577a80ddfada3eebf971fbe9a746 (diff)
parente94c03a340b01dea4d339098b6314c680ee37427 (diff)
downloadrabbitmq-server-git-0d7bf2bad9c6f6bbecc481ab698e725096c731da.tar.gz
Merge pull request #6227 from rabbitmq/mergify/bp/v3.11.x/pr-6226
Make actions secrets optional in Windows workflow (backport #6226)
-rw-r--r--.github/workflows/test-windows.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/test-windows.yaml b/.github/workflows/test-windows.yaml
index f66130458f..1289469943 100644
--- a/.github/workflows/test-windows.yaml
+++ b/.github/workflows/test-windows.yaml
@@ -34,13 +34,16 @@ jobs:
id: configure
shell: bash
run: |
+ if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then
+ cat << EOF >> user.bazelrc
+ build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }}
+ EOF
+ fi
cat << EOF >> user.bazelrc
startup --output_user_root=C:/tmp
startup --windows_enable_symlinks
build --enable_runfiles
- build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }}
-
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-windows