diff --git a/autodeploy/setup.sh b/autodeploy/setup.sh index d0e33df..fa575e6 100755 --- a/autodeploy/setup.sh +++ b/autodeploy/setup.sh @@ -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