Skip to content

Commit ab441e2

Browse files
committed
Fix syntax
1 parent fc1ebd8 commit ab441e2

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/actions/set-up-bazelisk/action.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
4238
runs:
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
@@ -59,7 +55,7 @@ runs:
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

0 commit comments

Comments
 (0)