fix: adding version checking

This commit is contained in:
2025-06-19 09:12:43 +02:00
parent 7f55b444fb
commit e439e7f22c

View File

@ -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