diff --git a/.github/workflows/compile_godot.yaml b/.github/workflows/compile_godot.yaml index e099126..d5fc6df 100644 --- a/.github/workflows/compile_godot.yaml +++ b/.github/workflows/compile_godot.yaml @@ -271,8 +271,8 @@ jobs: echo "DEBUG_HASH=${debug_hash[1]}" >> $GITHUB_ENV # Only Upload the engine if it doesn't exist already - curl --head --fail https://godot-engine.static.ilus.pw/release_${{ env.GODOT_VERSION }}_${{ env.RELEASE_HASH }}/index.side.wasm - if [ $? -ne 0 ]; then + curl --head https://godot-engine.static.ilus.pw/release_${{ env.GODOT_VERSION }}_${{ env.RELEASE_HASH }}/index.side.wasm || EXIT_CODE=$? + if [ -n "$EXIT_CODE" ]; then echo "UPLOAD_ENGINE=true" >> $GITHUB_ENV else echo "UPLOAD_ENGINE=false" >> $GITHUB_ENV