only run pixi init if needed

This commit is contained in:
2026-06-18 10:37:49 +02:00
parent bb7abdbd95
commit 7603c7b20a
+7 -1
View File
@@ -34,7 +34,13 @@ chmod +x "$GITHUB_WORKSPACE/pixi"
cd "$DESTINATION_DIR"
"$GITHUB_WORKSPACE/pixi" init || true
if [[ -f "pixi.toml" ]]; then
echo "pixi already initialized"
else
echo "pixi init"
"$GITHUB_WORKSPACE/pixi" init
fi
echo "pixi install"
"$GITHUB_WORKSPACE/pixi" install --all --no-progress