We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96d4d15 commit 779123aCopy full SHA for 779123a
1 file changed
.github/actions/restore-venv/action.yml
@@ -25,10 +25,18 @@ runs:
25
${{ inputs.venv-directory }}
26
${{ inputs.precommit-home }}
27
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
+
37
- name: Fail job if Python cache restore failed
38
if: ${{ inputs.fail-on-miss == 'true' && steps.cache-create.outputs.cache-hit != 'true' }}
39
shell: bash
40
run: |
41
echo "Failed to restore cache for ${{ inputs.python-version}} virtual environment from cache"
42
exit 1
-
0 commit comments