From 39e5feb1385599a8fbc72ee67d782147d96dc55e Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Fri, 29 Sep 2023 23:01:38 -0400 Subject: [PATCH] Fix quote issue --- .github/workflows/publish-to-test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-test.yaml b/.github/workflows/publish-to-test.yaml index 99b293f..97707ff 100644 --- a/.github/workflows/publish-to-test.yaml +++ b/.github/workflows/publish-to-test.yaml @@ -26,7 +26,9 @@ jobs: - name: Append Dev Version to __version__ run: | DEV_VERSION=${{ github.event.inputs.dev_version }} - sed -i "s/__version__ = \\".*\\"/__version__ = \\"$(sed -n 's/__version__ = \\"\(.*\)\\"/\1/p' llama_cpp/__init__.py).dev${DEV_VERSION}\\"/" llama_cpp/__init__.py + CURRENT_VERSION=$(awk -F= '/__version__ =/ {print $2}' llama_cpp/__init__.py | tr -d ' "') + NEW_VERSION="${CURRENT_VERSION}.dev${DEV_VERSION}" + sed -i "s/__version__ = \\".*\\"/__version__ = \\"${NEW_VERSION}\\"/" llama_cpp/__init__.py - name: Install dependencies run: | python3 -m pip install --upgrade pip build