Skip to content

Commit bc047f3

Browse files
committed
Update python version inside the config file
1 parent 22c12c7 commit bc047f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build_installation_package.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
export DQMGUI_PYTHON_VERSION=$($(which python3) -c 'import platform; print(platform.python_version())')
2929
export RELEASE_TAG=python_${DQMGUI_PYTHON_VERSION}_deployment_${DMWM_GIT_TAG}_dqmgui_${DQMGUI_GIT_TAG}_root_${ROOT_GIT_TAG}
3030
sudo apt update && sudo apt install -y libcurl4-gnutls-dev
31-
$(which python3) --version
31+
# Replace python version inside the config, it will matter during installation
32+
sed -iE "s/PYTHON\_VERSION=[0-9]\.[0-9]{1,2}/PYTHON\_VERSION=$(echo $DQMGUI_PYTHON_VERSION | cut -d'.' -f1,2)/" config.sh
3233
bash download_dependencies.sh PYTHON_VERSION=$DQMGUI_PYTHON_VERSION DMWM_GIT_TAG=$DMWM_GIT_TAG DMWM_GIT_URL=$DMWM_GIT_URL DQMGUI_GIT_TAG=$DQMGUI_GIT_TAG ROOT_GIT_URL=$ROOT_GIT_URL ROOT_GIT_TAG=$ROOT_GIT_TAG
3334
bash build_installation_package.sh TARGET_DIRECTORY="/tmp/dqmgui" ARCHIVE_NAME="dqmgui_$RELEASE_TAG.tar.gz"
3435
echo "Automatically generated release for making the installation package publicly available.

0 commit comments

Comments
 (0)