From 1f788d41baf3bb4e37776809b953dee3e95dbf0f Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 6 Feb 2024 10:17:38 +0000 Subject: [PATCH] .gitlab-ci.yml: Fix Python binary used --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 78a83a561..acb7b7f41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,12 +113,15 @@ Autobranch: script: - | + function lisa_python() { + "$LISA_PYTHON" "$@" + } set -e export LC_ALL=C venv=$(mktemp -d) - python3 -m venv "$venv" && source "$venv/bin/activate" - $LISA_PYTHON -m pip install --upgrade pip - $LISA_PYTHON -m pip install ./tools/lisa-combine-gitlab-mr + lisa_python -m venv "$venv" && source "$venv/bin/activate" + lisa_python -m pip install --upgrade pip + lisa_python -m pip install ./tools/lisa-combine-gitlab-mr function update_branch() { local label=$1 -- GitLab