File tree Expand file tree Collapse file tree
.github/actions/mount-bazel-cache Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 required : true
55 writable :
66 required : false
7- default : " false"
7+ type : boolean
8+ default : false
89runs :
910 using : " composite"
1011 steps :
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
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
You can’t perform that action at this time.
0 commit comments