File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,28 @@ jobs:
29
29
run : |
30
30
git lfs install
31
31
git lfs pull
32
-
32
+ echo "Verifying LFS files:"
33
+ git lfs ls-files
34
+ ls -lah resourcepack.zip || echo "resourcepack.zip not downloaded"
35
+
36
+ # Force download LFS files if necessary
37
+ - name : Force download LFS files
38
+ run : |
39
+ git lfs fetch --all
40
+ git lfs checkout
41
+ ls -lah resourcepack.zip || echo "resourcepack.zip still not downloaded"
42
+
33
43
# Verify the file exists
34
44
- name : Verify resourcepack.zip
35
45
run : |
36
- echo "Listing all files:"
37
- ls -la
38
- echo "LFS files:"
39
- git lfs ls-files
40
- echo "Checking resourcepack.zip:"
41
- ls -la resourcepack.zip || echo "File not found"
46
+ if [ ! -f resourcepack.zip ]; then
47
+ echo "Error: resourcepack.zip not found!"
48
+ exit 1
49
+ fi
42
50
43
51
- name : Upload resourcepack as artifact
44
52
uses : actions/upload-artifact@v3
45
53
with :
46
54
name : resourcepack
47
55
path : resourcepack.zip
48
- if-no-files-found : error
56
+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments