fix: dichotomying

This commit is contained in:
2025-06-19 14:03:03 +02:00
parent d812c17f50
commit 50b13d2867

View File

@ -16,17 +16,17 @@ runs:
with:
lfs: false
- name: Create LFS file list
if: ${{ inputs.checkout-version == '3' }}
run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
#- name: Create LFS file list
# if: ${{ inputs.checkout-version == '3' }}
# run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
if: ${{ inputs.checkout-version == '3' }}
uses: actions/cache@v4
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
#- name: Restore LFS cache
# if: ${{ inputs.checkout-version == '3' }}
# uses: actions/cache@v4
# id: lfs-cache
# with:
# path: .git/lfs
# key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
- name: Checkout LFS
if: ${{ inputs.checkout-version == '3' }}
@ -41,6 +41,8 @@ runs:
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
/usr/bin/git lfs checkout
/usr/bin/git add .
/usr/bin/git reset --hard
- name: Checkout
if: ${{ inputs.checkout-version == '4' }}