Skip to content

Commit 779123a

Browse files
committed
Ensure saving
1 parent 96d4d15 commit 779123a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/actions/restore-venv/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)