File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
.github/actions/restore-venv Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,18 @@ runs:
2525 ${{ inputs.venv-directory }}
2626 ${{ inputs.precommit-home }}
2727 key : ${{ inputs.cache-key }}
28+ - name : Save cache if (purposely) created
29+ if : ${{ inputs.fail-on-miss == 'false' && steps.cache-venv.outputs.cache-hit != 'true' }}
30+ uses : actions/cache/save@v4
31+ with :
32+ key : ${{ inputs.cache-key }}
33+ path : |
34+ ${{ inputs.venv-directory }}
35+ ${{ inputs.precommit-home }}
36+
2837 - name : Fail job if Python cache restore failed
2938 if : ${{ inputs.fail-on-miss == 'true' && steps.cache-create.outputs.cache-hit != 'true' }}
3039 shell : bash
3140 run : |
3241 echo "Failed to restore cache for ${{ inputs.python-version}} virtual environment from cache"
3342 exit 1
34-
You can’t perform that action at this time.
0 commit comments