Skip to content

Commit 617aff1

Browse files
author
Simeon Kummer
committed
fix resourcepack upload github action
1 parent 3d78767 commit 617aff1

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/upload-resourcepack.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,28 @@ jobs:
2929
run: |
3030
git lfs install
3131
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+
3343
# Verify the file exists
3444
- name: Verify resourcepack.zip
3545
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
4250
4351
- name: Upload resourcepack as artifact
4452
uses: actions/upload-artifact@v3
4553
with:
4654
name: resourcepack
4755
path: resourcepack.zip
48-
if-no-files-found: error
56+
if-no-files-found: error

0 commit comments

Comments
 (0)