Merge "ensure-bazel: replace ignore_errors with failed_when"
This commit is contained in:
commit
4090d65dab
@ -1,9 +1,12 @@
|
|||||||
- name: Check version of bazel
|
- name: Check version of bazel
|
||||||
shell: bazel --version | grep -Eo '([0-9]+\.)+[0-9]+'
|
shell: |
|
||||||
ignore_errors: yes
|
set -o pipefail
|
||||||
|
bazel --version | grep -Eo '([0-9]+\.)+[0-9]+'
|
||||||
|
failed_when: false
|
||||||
register: installed_bazel_version
|
register: installed_bazel_version
|
||||||
|
|
||||||
- debug: msg="Current installed Bazel version is {{ installed_bazel_version.stdout }}"
|
- debug:
|
||||||
|
msg: "Current installed Bazel version is {{ installed_bazel_version.stdout }}"
|
||||||
|
|
||||||
- name: Download and install Bazel if needed
|
- name: Download and install Bazel if needed
|
||||||
include_tasks: install-bazel.yaml
|
include_tasks: install-bazel.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user