We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6e98f commit 39e5febCopy full SHA for 39e5feb
.github/workflows/publish-to-test.yaml
@@ -26,7 +26,9 @@ jobs:
26
- name: Append Dev Version to __version__
27
run: |
28
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
+ 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
32
- name: Install dependencies
33
34
python3 -m pip install --upgrade pip build
0 commit comments