From 51134f80f70ba5154550c147a70f926ea018fd6f Mon Sep 17 00:00:00 2001 From: Kalila <69767640+digisomni@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:23:21 +1000 Subject: [PATCH] Setup workflows to pull git LFS recursively too. --- .github/workflows/build_test.yml | 15 ++++++++++++++- .github/workflows/main.yml | 11 +++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 32de3f2..12cbb4a 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,7 +17,20 @@ jobs: runs-on: ubuntu-latest steps: - name: 🚚 Get latest code - uses: actions/checkout@v2 + uses: actions/checkout@v4.2.0 + with: + submodules: 'recursive' + lfs: true + + - name: 📥 Fetch LFS objects + run: | + git lfs fetch --all + git submodule foreach --recursive 'git lfs fetch --all' + + - name: 📥 Checkout LFS objects + run: | + git lfs checkout + git submodule foreach --recursive git lfs checkout - uses: actions/setup-node@master diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 027c4e0..f5ee024 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,17 @@ jobs: uses: actions/checkout@v4.2.0 with: submodules: 'recursive' + lfs: true + + - name: 📥 Fetch LFS objects + run: | + git lfs fetch --all + git submodule foreach --recursive 'git lfs fetch --all' + + - name: 📥 Checkout LFS objects + run: | + git lfs checkout + git submodule foreach --recursive git lfs checkout - uses: actions/setup-node@master