This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new f65a11bab41 Prevalidate presence of precommit cache tarball instead of
hard failing (#49806)
f65a11bab41 is described below
commit f65a11bab41887d008aeaada1108ee2cb7d4bc79
Author: Amogh Desai <[email protected]>
AuthorDate: Sat Apr 26 11:36:25 2025 +0530
Prevalidate presence of precommit cache tarball instead of hard failing
(#49806)
---
.github/actions/install-pre-commit/action.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.github/actions/install-pre-commit/action.yml
b/.github/actions/install-pre-commit/action.yml
index d3afae46b86..e17fe67b2ee 100644
--- a/.github/actions/install-pre-commit/action.yml
+++ b/.github/actions/install-pre-commit/action.yml
@@ -61,6 +61,16 @@ runs:
key: cache-pre-commit-v4-${{ inputs.python-version }}-${{
hashFiles('.pre-commit-config.yaml') }}
path: /tmp/
id: restore-pre-commit-cache
+ - name: "Check if pre-commit cache tarball exists"
+ shell: bash
+ run: |
+ if [ -f /tmp/cache-pre-commit.tar.gz ]; then
+ echo "✅ Cache tarball found: /tmp/cache-pre-commit.tar.gz"
+ else
+ echo "❌ Cache tarball missing. Expected /tmp/cache-pre-commit.tar.gz"
+ exit 1
+ fi
+ if: steps.restore-pre-commit-cache.outputs.stash-hit == 'true'
- name: "Restore .cache from the tar file"
run: tar -C ~ -xzf /tmp/cache-pre-commit.tar.gz
shell: bash