Skip to content

Commit 39e5feb

Browse files
committed
Fix quote issue
1 parent 3c6e98f commit 39e5feb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-to-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- name: Append Dev Version to __version__
2727
run: |
2828
DEV_VERSION=${{ github.event.inputs.dev_version }}
29-
sed -i "s/__version__ = \\".*\\"/__version__ = \\"$(sed -n 's/__version__ = \\"\(.*\)\\"/\1/p' llama_cpp/__init__.py).dev${DEV_VERSION}\\"/" llama_cpp/__init__.py
29+
CURRENT_VERSION=$(awk -F= '/__version__ =/ {print $2}' llama_cpp/__init__.py | tr -d ' "')
30+
NEW_VERSION="${CURRENT_VERSION}.dev${DEV_VERSION}"
31+
sed -i "s/__version__ = \\".*\\"/__version__ = \\"${NEW_VERSION}\\"/" llama_cpp/__init__.py
3032
- name: Install dependencies
3133
run: |
3234
python3 -m pip install --upgrade pip build

0 commit comments

Comments
 (0)