diff --git a/.github/workflows/vim-release.yml b/.github/workflows/vim-release.yml index 54a300477b61..47031c0d487d 100644 --- a/.github/workflows/vim-release.yml +++ b/.github/workflows/vim-release.yml @@ -2,19 +2,44 @@ name: Release Vim Plugin on: workflow_dispatch: - + jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: olivr/copybara-action@v1.2.3 - with: - ssh_key: ${{ secrets.VIM_RELEASE_SSH_KEY }} - access_token: ${{ secrets.VIM_RELEASE_GH_TOKEN }} - sot_repo: TabbyML/tabby - destination_repo: TabbyML/vim-tabby - push_include: "clients/vim/**" - workflow: push + - name: Checkout tabby repo + uses: actions/checkout@v3 + with: + lfs: true + path: tabby + - name: Checkout vim-tabby repo + uses: actions/checkout@v3 + with: + repository: TabbyML/vim-tabby + token: ${{ secrets.VIM_RELEASE_GH_TOKEN }} + lfs: true + path: vim-tabby + - name: Copy files + run: | + cp -r tabby/clients/vim/* vim-tabby/ + rm vim-tabby/package.json + - name: Get version + id: get_version + run: | + cd vim-tabby/autoload/tabby/ + version=$(cat globals.vim | grep "let g:tabby_version" | sed -e 's/.*"\(.*\)".*/\1/') + echo "::set-output name=version::$version" + - name: Commit files + run: | + cd vim-tabby/ + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add . + git commit -m "release: vim-tabby version ${{ steps.get_version.outputs.version }}" + - name: Push changes + uses: ad-m/github-push-action@master + with: + repository: TabbyML/vim-tabby + github_token: ${{ secrets.VIM_RELEASE_GH_TOKEN }} + directory: vim-tabby + force: true diff --git a/clients/vim/CHANGELOG.md b/clients/vim/CHANGELOG.md index 7c24778ea3fc..348faee487b2 100644 --- a/clients/vim/CHANGELOG.md +++ b/clients/vim/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.0.2 + +### Fixes: + +- Fixed a bug causing status stuck in 'initializing' when script not found. + ## 1.0.1 ### Fixes: diff --git a/clients/vim/autoload/tabby/globals.vim b/clients/vim/autoload/tabby/globals.vim index c24f5ec7a349..8923022c30fc 100644 --- a/clients/vim/autoload/tabby/globals.vim +++ b/clients/vim/autoload/tabby/globals.vim @@ -50,5 +50,5 @@ function! tabby#globals#Load() " Version of Tabby plugin. Not configurable. - let g:tabby_version = "1.0.1" + let g:tabby_version = "1.0.2" endfunction \ No newline at end of file diff --git a/clients/vim/package.json b/clients/vim/package.json index 29ecffe9f69e..3d17dd49c37a 100644 --- a/clients/vim/package.json +++ b/clients/vim/package.json @@ -1,6 +1,6 @@ { "name": "vim-tabby", - "version": "1.0.1", + "version": "1.0.2", "description": "Vim plugin for Tabby AI coding assistant.", "repository": "https://github.com/TabbyML/tabby", "scripts": {