Skip to content

Switch to llamafile v0.7 #71

Switch to llamafile v0.7

Switch to llamafile v0.7 #71

Workflow file for this run

name: Version
on:
pull_request:
types:
- opened
jobs:
set_version:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release/')
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
token: ${{ github.token }}
- name: Set VERSION
run: |
version="${GITHUB_HEAD_REF#release/}"
echo $version > VERSION
sed -i "s/\"version\": \".*\"/\"version\": \"${version#v}\"/" package.json
sed -i "s/public static string Version = \".*\";/public static string Version = \"$version\";/" Runtime/LLMUnitySetup.cs
sed -i "s/PROJECT_NUMBER *= *[^ ]*/PROJECT_NUMBER = $version/" .github/doxygen/Doxyfile
git config --global user.name $GITHUB_ACTOR
git config --global user.email $GITHUB_ACTOR@users.noreply.github.com
git add VERSION
git add package.json
git add Runtime/LLMUnitySetup.cs
git add .github/doxygen/Doxyfile
git commit -m "update VERSION"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.head_ref }}