fix: dichotomying
This commit is contained in:
22
action.yaml
22
action.yaml
@ -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' }}
|
||||
|
Reference in New Issue
Block a user