From a0bfd0c0f7c99647e42804e6fffc135dcd18b11a Mon Sep 17 00:00:00 2001 From: Vaibhav Gupta Date: Tue, 14 Nov 2023 10:21:51 -0800 Subject: [PATCH] make less brittle --- .github/workflows/cli.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 0bcd670b2..7078ccb50 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -109,7 +109,7 @@ jobs: path: engine/target/x86_64-pc-windows-msvc/release/ - id: hash run: | - VERSION=$(cat engine/.bumpversion.cfg | grep current_version | cut -d '=' -f 2 | sed 's/[", ]//g') + VERSION=$(cat engine/.bumpversion.cfg | grep "current_version =" | cut -d '=' -f 2 | sed 's/[", ]//g') if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+-canary\.[0-9]+$ ]]; then echo "Version ($VERSION) is not a pre-release build" @@ -196,7 +196,7 @@ jobs: path: engine/target/x86_64-pc-windows-msvc/release/ - id: hash run: | - VERSION=$(cat engine/.bumpversion.cfg | grep current_version | cut -d '=' -f 2 | sed 's/[", ]//g') + VERSION=$(cat engine/.bumpversion.cfg | grep "current_version =" | cut -d '=' -f 2 | sed 's/[", ]//g') if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "Version ($VERSION) is not a release build" exit 1