fix: adding version checking
This commit is contained in:
12
action.yaml
12
action.yaml
@ -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
|
||||
|
Reference in New Issue
Block a user