From 114f099a066b85552a9a47cdf7c59a3d9989a1f9 Mon Sep 17 00:00:00 2001 From: Luc Date: Tue, 17 Dec 2024 20:52:45 +0100 Subject: [PATCH] Update CI --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 482901a..aeb959e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -61,7 +61,7 @@ jobs: else echo "No release tag detected, using version from Cargo.toml" # parse version from Cargo.toml using regex - version=$(grep -oP 'version = "([^"]+?)"' engine/Cargo.toml | sed 's/^version = "\(.*\)"$/\1/') + version=$(grep -oP 'version = "([^"]+?)"' engine/Cargo.toml | head -n 1 | sed 's/^version = "\(.*\)"$/\1/') echo "Current version: $version" sed -i "s/^version = .*/version = \"${version}-alpha\"/" engine/Cargo.toml fi