fix: dichotomying
This commit is contained in:
22
action.yaml
22
action.yaml
@ -16,17 +16,17 @@ runs:
|
|||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
- name: Create LFS file list
|
#- name: Create LFS file list
|
||||||
if: ${{ inputs.checkout-version == '3' }}
|
# if: ${{ inputs.checkout-version == '3' }}
|
||||||
run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
|
# run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
|
||||||
|
|
||||||
- name: Restore LFS cache
|
#- name: Restore LFS cache
|
||||||
if: ${{ inputs.checkout-version == '3' }}
|
# if: ${{ inputs.checkout-version == '3' }}
|
||||||
uses: actions/cache@v4
|
# uses: actions/cache@v4
|
||||||
id: lfs-cache
|
# id: lfs-cache
|
||||||
with:
|
# with:
|
||||||
path: .git/lfs
|
# path: .git/lfs
|
||||||
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
|
# key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
|
||||||
|
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS
|
||||||
if: ${{ inputs.checkout-version == '3' }}
|
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 fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||||
/usr/bin/git lfs checkout
|
/usr/bin/git lfs checkout
|
||||||
|
/usr/bin/git add .
|
||||||
|
/usr/bin/git reset --hard
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: ${{ inputs.checkout-version == '4' }}
|
if: ${{ inputs.checkout-version == '4' }}
|
||||||
|
Reference in New Issue
Block a user