Skip to content

Commit 8951418

Browse files
committed
Do not enable remote Bazel cache unless access key is present
This happens on PRs where the access key secret is not available for security resasons. We can revert this once we have the cache public again, but for now let's at least not fail PR builds.
1 parent 75f7b60 commit 8951418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/cache-bazel/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ runs:
5050
- run: |
5151
echo '${{ inputs.gcs-key }}' >> gcs.json
5252
echo "build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache --remote_upload_local_results=${{ github.ref == 'refs/heads/trunk' }} --google_credentials=gcs.json" >> .bazelrc
53-
if: runner.os != 'Windows'
53+
if: inputs.gcs-key != '' && runner.os != 'Windows'
5454
shell: bash
5555
- run: |
5656
echo ${{ inputs.gcs-key }}>>gcs.json
5757
echo "build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache --remote_upload_local_results=${{ github.ref == 'refs/heads/trunk' }} --google_credentials=gcs.json">>.bazelrc
58-
if: github.ref == 'refs/heads/trunk' && runner.os == 'Windows'
58+
if: inputs.gcs-key != '' && runner.os == 'Windows'
5959
shell: cmd

0 commit comments

Comments
 (0)