From e439e7f22ccc29cecb505c20adea6fa028e720a5 Mon Sep 17 00:00:00 2001 From: Minimata Date: Thu, 19 Jun 2025 09:12:43 +0200 Subject: [PATCH] fix: adding version checking --- action.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/action.yaml b/action.yaml index 00127a1..fe7ec59 100644 --- a/action.yaml +++ b/action.yaml @@ -17,10 +17,12 @@ runs: lfs: false - name: Create LFS file list - run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + if: ${{ inputs.checkout-version == '3' }} + run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - name: Restore LFS cache - uses: actions/cache@v3 + if: ${{ inputs.checkout-version == '3' }} + uses: actions/cache@v4 id: lfs-cache with: path: .git/lfs @@ -49,10 +51,12 @@ runs: lfs: false - name: Create LFS file list - run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + if: ${{ inputs.checkout-version == '4' }} + run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - name: Restore LFS cache - uses: actions/cache@v3 + if: ${{ inputs.checkout-version == '4' }} + uses: actions/cache@v4 id: lfs-cache with: path: .git/lfs