fix: adding version checking
This commit is contained in:
12
action.yaml
12
action.yaml
@ -17,10 +17,12 @@ runs:
|
|||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
- name: Create LFS file list
|
- 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
|
- name: Restore LFS cache
|
||||||
uses: actions/cache@v3
|
if: ${{ inputs.checkout-version == '3' }}
|
||||||
|
uses: actions/cache@v4
|
||||||
id: lfs-cache
|
id: lfs-cache
|
||||||
with:
|
with:
|
||||||
path: .git/lfs
|
path: .git/lfs
|
||||||
@ -49,10 +51,12 @@ runs:
|
|||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
- name: Create LFS file list
|
- 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
|
- name: Restore LFS cache
|
||||||
uses: actions/cache@v3
|
if: ${{ inputs.checkout-version == '4' }}
|
||||||
|
uses: actions/cache@v4
|
||||||
id: lfs-cache
|
id: lfs-cache
|
||||||
with:
|
with:
|
||||||
path: .git/lfs
|
path: .git/lfs
|
||||||
|
Reference in New Issue
Block a user