chore(actions): fix

This commit is contained in:
omo50
2026-03-13 20:36:12 -06:00
parent 043e627195
commit 79528ea21c

View File

@@ -20,7 +20,12 @@ jobs:
pack=$(git diff --name-only HEAD~1 HEAD | grep '^resourcepacks/' | sed 's|resourcepacks/[^/]*/\([^/]*\)/.*|\1|' | sort -u | head -1)
dir=$(find ./resourcepacks -type d -name "$pack" | head -1)
echo "pack=$pack" >> $GITHUB_OUTPUT
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
curl -L \
$(curl -s https://api.github.com/repos/ComunidadAylas/PackSquash/releases/latest \
| grep "browser_download_url" \
| grep "x86_64-unknown-linux-musl" \
| cut -d '"' -f 4) \
-o /tmp/packsquash
chmod +x /tmp/packsquash
cat > /tmp/options.toml << EOF
pack_directory = '$dir'