From bf9d0d6e69f4fc1a729bca75da008da1bb4da13f Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sat, 7 Feb 2026 16:26:37 +0100 Subject: [PATCH] ci: fix incorrect selection of version --- .github/workflows/documentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 9793d9dc3c6..53f830a7911 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -42,7 +42,7 @@ jobs: - name: Get current version from Cargo.toml id: version run: | - VERSION=$(awk '/\[workspace\.package\]/{flag=1; next} flag && /version = /{gsub(/.*= "/, ""); gsub(/".*/, ""); print; exit}' Cargo.toml) + VERSION=$(awk '/\[workspace\.package\]/{flag=1; next} flag && /^version = /{gsub(/.*= "/, ""); gsub(/".*/, ""); print; exit}' Cargo.toml) echo "version=$VERSION" >> $GITHUB_OUTPUT echo "Detected version: $VERSION"