From 2b57216e752f1a0b491374e47824e56666fb6e82 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Mon, 1 Jul 2024 07:07:27 +0200 Subject: [PATCH] fix gdext import workaround --- .github/actions/import/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/import/action.yml b/.github/actions/import/action.yml index 54b0796..1c84a1c 100644 --- a/.github/actions/import/action.yml +++ b/.github/actions/import/action.yml @@ -23,7 +23,9 @@ runs: cd imgui-godot-*/imgui-godot-* || true cd ${{ inputs.path }} godotenv addons install - mkdir .godot - echo "res://addons/imgui-godot/imgui-godot-native.gdextension" > .godot/extension_list.cfg + if [[ -f addons/imgui-godot/imgui-godot-native.gdextension ]]; then + mkdir .godot + echo "res://addons/imgui-godot/imgui-godot-native.gdextension" > .godot/extension_list.cfg + fi $GODOT --headless --import || true echo "GAMEDIR=$(pwd)" >> $GITHUB_ENV