diff --git a/.forgejo/workflows/rp-resourcepack-build.yml b/.forgejo/workflows/rp-resourcepack-build.yml index e1a05df9c..22c58b6c3 100644 --- a/.forgejo/workflows/rp-resourcepack-build.yml +++ b/.forgejo/workflows/rp-resourcepack-build.yml @@ -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'