From 2ab9253d9a486ad3640d52006905a60480464c83 Mon Sep 17 00:00:00 2001 From: "zhenglaiwen.zlw" Date: Fri, 13 Dec 2024 13:47:36 +0800 Subject: [PATCH] workflow: check hook before execute git lfs install --- .github/workflows/release_packages.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_packages.yml b/.github/workflows/release_packages.yml index 95decb8d..12d49f3a 100644 --- a/.github/workflows/release_packages.yml +++ b/.github/workflows/release_packages.yml @@ -44,7 +44,9 @@ jobs: - name: Pull LFS run: | - git lfs install + if [ ! -f .git/hooks/pre-push ]; then + git lfs install + fi git lfs pull - name: Init submodule @@ -110,7 +112,9 @@ jobs: - name: Pull LFS run: | - git lfs install + if [ ! -f .git/hooks/pre-push ]; then + git lfs install + fi git lfs pull - name: Init submodule