Skip to content

Commit 8049b0d

Browse files
committed
Set workspaces in Swatinem/rust-cache to rust-src-dir if cache-workspaces is not set
1 parent d19d138 commit 8049b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ runs:
229229
if: inputs.cache == 'true'
230230
uses: Swatinem/rust-cache@v2
231231
with:
232-
workspaces: ${{inputs.cache-workspaces}}
232+
workspaces: ${{ inputs.cache-workspaces || inputs.rust-src-dir }}
233233
cache-directories: ${{inputs.cache-directories}}
234234
cache-on-failure: ${{inputs.cache-on-failure}}
235235
cache-bin: ${{inputs.cache-bin}}

0 commit comments

Comments
 (0)