Skip to content

Commit e54571a

Browse files
committed
writable in GH action mount-bazel-cache is boolean
1 parent 6a55e33 commit e54571a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/mount-bazel-cache/action.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ inputs:
44
required: true
55
writable:
66
required: false
7-
default: "false"
7+
type: boolean
8+
default: false
89
runs:
910
using: "composite"
1011
steps:
@@ -17,7 +18,7 @@ runs:
1718
run: echo "CACHE_KEY_PREFIX=${{ runner.os }}-${{ runner.arch }}-bazel-disk-cache-${{ env.CACHE_VERSION }}-${{ inputs.action-name }}-${{ env.JOB_HASH }}" >> $GITHUB_ENV
1819
shell: bash
1920
- name: Restore cache
20-
if: inputs.writable != 'true'
21+
if: ${{ ! inputs.writable }}
2122
uses: actions/cache/restore@v4
2223
with:
2324
path: ~/bazel-disk-cache
@@ -27,7 +28,7 @@ runs:
2728
${{ format('{0}-main-', env.CACHE_KEY_PREFIX) }}
2829
${{ format('{0}-', env.CACHE_KEY_PREFIX) }}
2930
- name: Restore and save cache
30-
if: inputs.writable == 'true'
31+
if: inputs.writable
3132
uses: actions/cache@v4
3233
with:
3334
path: ~/bazel-disk-cache

0 commit comments

Comments
 (0)