75ff21dac7
Also updated debug task to be more consistent with the rest of the repo. Change-Id: I26d97f903ea43e6cdbca5e707c85138f49a52322
16 lines
438 B
YAML
16 lines
438 B
YAML
- name: Check version of bazel
|
|
shell: |
|
|
set -o pipefail
|
|
bazel --version | grep -Eo '([0-9]+\.)+[0-9]+'
|
|
failed_when: false
|
|
register: installed_bazel_version
|
|
|
|
- debug:
|
|
msg: "Current installed Bazel version is {{ installed_bazel_version.stdout }}"
|
|
|
|
- name: Download and install Bazel if needed
|
|
include_tasks: install-bazel.yaml
|
|
when:
|
|
- install_bazel_if_missing
|
|
- installed_bazel_version.stdout != bazel_version
|