diff --git a/images/actions/godot/Dockerfile b/images/actions/godot/Dockerfile index c8cee2d..9df5d75 100644 --- a/images/actions/godot/Dockerfile +++ b/images/actions/godot/Dockerfile @@ -2,7 +2,12 @@ FROM git.euph.dev/actions/runner-csharp-7:latest ARG PACKAGE_VERSION -RUN wget https://downloads.tuxfamily.org/godotengine/$PACKAGE_VERSION/mono/Godot_v$PACKAGE_VERSION-stable_mono_linux_x86_64.zip -O Godot.zip \ +RUN wget $( \ + curl -s https://api.github.com/repos/godotengine/godot/releases/tags/$PACKAGE_VERSION-stable \ + | grep "browser_download_url.*Godot_v.*-stable_mono_linux_x86_64.zip" \ + | cut -d '"' -f 4 - \ + | head -n 1 \ + ) -O Godot.zip \ && sudo unzip Godot.zip \ && sudo mv ./Godot_v*-stable_mono_linux_x86_64/Godot_v*-stable_mono_linux.x86_64 /usr/local/bin/godot \ && sudo mv ./Godot_v*-stable_mono_linux_x86_64/GodotSharp /usr/local/bin/GodotSharp \