From 106984d67e2f0743bed04d83be0c8d9885c37319 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Tue, 14 Apr 2026 06:41:20 +0000 Subject: [PATCH] fixing github actions steps and configuration --- .github/workflows/registry-ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/registry-ci.yml b/.github/workflows/registry-ci.yml index cc54b6e0c..3a941a978 100644 --- a/.github/workflows/registry-ci.yml +++ b/.github/workflows/registry-ci.yml @@ -66,8 +66,14 @@ jobs: php${PHP_VER}-xsl \ php${PHP_VER}-memcached \ php${PHP_VER}-curl + # Force the correct version via update-alternatives + sudo update-alternatives --set php /usr/bin/php${PHP_VER} + # Also override via /usr/local/bin which is earlier in PATH sudo ln -sf /usr/bin/php${PHP_VER} /usr/local/bin/php + # Persist for subsequent steps echo "PHP_VER=${PHP_VER}" >> "$GITHUB_ENV" + # Prepend /usr/local/bin to PATH for all subsequent steps + echo "/usr/local/bin" >> "$GITHUB_PATH" - name: Install OS packages needed for setup shell: bash @@ -101,8 +107,10 @@ jobs: shell: bash run: | set -euxo pipefail - sudo mkdir -p "${COMANAGE_REGISTRY_DIR}/../local/config" - sudo tee "${COMANAGE_REGISTRY_DIR}/../local/config/database.php" > /dev/null <<'EOF' + cd "${COMANAGE_REGISTRY_DIR}"/local/config + sudo touch database.php + sudo chown www-data:www-data database.php + sudo tee "database.php" > /dev/null <<'EOF'