Set default context size to 8192 and allow to adjust with a UI slider #146
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |