From 11f3ba793247d23ed6a48294a45a4d9c52148157 Mon Sep 17 00:00:00 2001 From: rosslh Date: Wed, 11 Feb 2026 21:30:27 -0500 Subject: [PATCH] fix(ci): replace docker-based version extraction with grep The Docker-in-Docker volume mount fails in host execution mode because $PWD resolves to the runner container path, not the host path. Use grep to extract the version directly from constants.php. --- .forgejo/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index c799a6012..b4dd21eb0 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Get version id: version run: | - VERSION=$(docker run --rm -v "$PWD:/app" -w /app php:8.2-alpine3.16 php bootstrap/getVersion.php) + VERSION=$(grep -oP "'version' => '\K[^']+" config/constants.php) echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT" echo "Building version: ${VERSION}"