From 40aed8b90ba04716d6dbb28adfd20622ae5a2eca Mon Sep 17 00:00:00 2001 From: Martin Kim Date: Wed, 26 Jun 2024 15:20:35 -0700 Subject: [PATCH] ci: update release workflow --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f46682113..d2d8b7be69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: run: | # Switch to the commit we want to release git checkout ${{ inputs.branch }} - version=$(grep "version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g') + version=$(grep "^version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g') if [ "${{ inputs.tag }}" != "${version}" ]; then echo "The input tag does not match the version from pyproject.toml:" >&2 echo "${{ inputs.tag }}" >&2