summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRin Kuryloski <kuryloskip@vmware.com>2022-10-24 15:17:19 +0200
committerRin Kuryloski <kuryloskip@vmware.com>2022-10-24 15:17:19 +0200
commit34bedf42ec772d8044d8d35a948b5516fe5f4196 (patch)
tree27f8330bc243e7720fc33a2ef4dc17f80db8b154 /.github
parentfc090f0c06aa361dce9df7d21a9a5922d701fb92 (diff)
downloadrabbitmq-server-git-34bedf42ec772d8044d8d35a948b5516fe5f4196.tar.gz
Make secrets optional in Windows workflow
Only attempt to inject the buildbuddy api key header if it is available to a given run (which it isn't for some pull requests)
Diffstat (limited to '.github')
-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