Skip to content

Commit 6dfd897

Browse files
committed
leanit up
1 parent 06a1549 commit 6dfd897

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
with:
4646
repository: ${{ inputs.repository }}
4747
path: 'lfs_data_cache/lfs_source'
48-
fetch-depth: 0
48+
fetch-depth: 1
4949
lfs: false
5050

5151
- name: Set LFS sha env var from repository
@@ -80,9 +80,14 @@ runs:
8080
repository: ${{ inputs.repository }}
8181
ref: ${{env.lfs_data_cache_sha}}
8282
path: 'lfs_data_cache/lfs_data'
83-
fetch-depth: 0
83+
fetch-depth: 1
8484
lfs: true
8585

86+
- name: Remove not needed .git folder
87+
working-directory: ${{github.workspace}}/lfs_data_cache/lfs_data
88+
shell: bash
89+
run: rm -rf .git
90+
8691
- name: Upload LFS artifact
8792
if: |
8893
steps.cache-lfs.outputs.cache-hit != 'true' &&
@@ -92,7 +97,6 @@ runs:
9297
name: lfs-data-${{inputs.cache_postfix}}
9398
path: 'lfs_data_cache/lfs_data'
9499
overwrite: true
95-
include-hidden-files: true
96100

97101
- name: Download LFS artifact
98102
id: download-artifact
@@ -115,7 +119,7 @@ runs:
115119
repository: ${{ inputs.repository }}
116120
ref: ${{env.lfs_data_cache_sha}}
117121
path: 'lfs_data_cache/lfs_data'
118-
fetch-depth: 0
122+
fetch-depth: 1
119123
lfs: true
120124

121125
- name: Save LFS data cache

0 commit comments

Comments
 (0)