Skip to content

Commit 3d78767

Browse files
author
Simeon Kummer
committed
Fix Git LFS checkout in workflow to properly handle resourcepack.zip
1 parent 4b22244 commit 3d78767

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/upload-resourcepack.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,34 @@ jobs:
1111
upload-resourcepack:
1212
runs-on: ubuntu-latest
1313
steps:
14+
# First install Git LFS
15+
- name: Install Git LFS
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y git-lfs
19+
20+
# Properly checkout with LFS
1421
- name: Checkout repository
1522
uses: actions/checkout@v3
16-
17-
- name: Verify resourcepack.zip exists
23+
with:
24+
lfs: true
25+
fetch-depth: 0
26+
27+
# Pull LFS files explicitly
28+
- name: Pull LFS files
29+
run: |
30+
git lfs install
31+
git lfs pull
32+
33+
# Verify the file exists
34+
- name: Verify resourcepack.zip
1835
run: |
36+
echo "Listing all files:"
1937
ls -la
20-
if [ -f "resourcepack.zip" ]; then
21-
echo "resourcepack.zip exists!"
22-
else
23-
echo "resourcepack.zip NOT FOUND!"
24-
exit 1
25-
fi
38+
echo "LFS files:"
39+
git lfs ls-files
40+
echo "Checking resourcepack.zip:"
41+
ls -la resourcepack.zip || echo "File not found"
2642
2743
- name: Upload resourcepack as artifact
2844
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)