File tree Expand file tree Collapse file tree
.github/actions/set-up-bazelisk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,18 +35,14 @@ permissions:
3535 actions : write
3636 contents : read
3737
38- env :
39- debug : ${{inputs.debug || runner.debug}}
40- bazel-cache : ~/.cache/bazel
41-
4238runs :
4339 using : ' composite'
4440 steps :
4541 - name : Set environment variables
4642 shell : bash
47- SHELLOPTS : ${{env .debug && 'xtrace' || ''}}
43+ SHELLOPTS : ${{(inputs .debug || runner.debug) && 'xtrace' || ''}}
4844 run : |
49- version=" "
45+ echo "bazel_cache=$HOME/.cache/bazel" >> "$GITHUB_ENV "
5046 if [[ -n "${{inputs.bazel-version}}" ]]; then
5147 version="${{inputs.bazel-version}}"
5248 elif [[ -f ".bazelversion" ]]; then
5955
6056 - name : Install Bazelisk
6157 env :
62- BAZELISK_SHOW_PROGRESS : ${{env .debug}}
58+ BAZELISK_SHOW_PROGRESS : ${{inputs.debug || runner .debug}}
6359 shell : bash
6460 run : npm install @bazel/bazelisk
6561
@@ -119,7 +115,7 @@ runs:
119115 } >> .bazelrc
120116
121117 - name : Print configuration information
122- if : env .debug
118+ if : ${{inputs .debug || runner.debug}}
123119 shell : bash
124120 run : |
125121 bazelisk --version
You can’t perform that action at this time.
0 commit comments