Quote fix attempt #2

This commit is contained in:
Andrei Betlen 2023-09-29 23:05:26 -04:00
parent 39e5feb138
commit 541aaff45e

View file

@ -28,7 +28,7 @@ jobs:
DEV_VERSION=${{ github.event.inputs.dev_version }} DEV_VERSION=${{ github.event.inputs.dev_version }}
CURRENT_VERSION=$(awk -F= '/__version__ =/ {print $2}' llama_cpp/__init__.py | tr -d ' "') CURRENT_VERSION=$(awk -F= '/__version__ =/ {print $2}' llama_cpp/__init__.py | tr -d ' "')
NEW_VERSION="${CURRENT_VERSION}.dev${DEV_VERSION}" NEW_VERSION="${CURRENT_VERSION}.dev${DEV_VERSION}"
sed -i "s/__version__ = \\".*\\"/__version__ = \\"${NEW_VERSION}\\"/" llama_cpp/__init__.py sed -i 's/__version__ = \".*\"/__version__ = \"'"${NEW_VERSION}"'\"/' llama_cpp/__init__.py
- name: Install dependencies - name: Install dependencies
run: | run: |
python3 -m pip install --upgrade pip build python3 -m pip install --upgrade pip build