We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e7606 commit f65a11bCopy full SHA for f65a11b
.github/actions/install-pre-commit/action.yml
@@ -61,6 +61,16 @@ runs:
61
key: cache-pre-commit-v4-${{ inputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
62
path: /tmp/
63
id: restore-pre-commit-cache
64
+ - name: "Check if pre-commit cache tarball exists"
65
+ shell: bash
66
+ run: |
67
+ if [ -f /tmp/cache-pre-commit.tar.gz ]; then
68
+ echo "✅ Cache tarball found: /tmp/cache-pre-commit.tar.gz"
69
+ else
70
+ echo "❌ Cache tarball missing. Expected /tmp/cache-pre-commit.tar.gz"
71
+ exit 1
72
+ fi
73
+ if: steps.restore-pre-commit-cache.outputs.stash-hit == 'true'
74
- name: "Restore .cache from the tar file"
75
run: tar -C ~ -xzf /tmp/cache-pre-commit.tar.gz
76
shell: bash
0 commit comments