fix(action): update github action vim-release using ad-m/github-push-action (#706)

* fix(ci): fix github action release vim.

* fix: fix job name to release.

* fix: fix commit files commands.

* chore(vim): bump vim-tabby version to 1.0.2.
refactor-extract-code
Zhiming Ma 2023-11-06 11:51:04 +08:00 committed by GitHub
parent 00e0c4fddc
commit 039b8bf3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 14 deletions

View File

@ -2,19 +2,44 @@ name: Release Vim Plugin
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout tabby repo
with: uses: actions/checkout@v3
fetch-depth: 0 with:
- uses: olivr/copybara-action@v1.2.3 lfs: true
with: path: tabby
ssh_key: ${{ secrets.VIM_RELEASE_SSH_KEY }} - name: Checkout vim-tabby repo
access_token: ${{ secrets.VIM_RELEASE_GH_TOKEN }} uses: actions/checkout@v3
sot_repo: TabbyML/tabby with:
destination_repo: TabbyML/vim-tabby repository: TabbyML/vim-tabby
push_include: "clients/vim/**" token: ${{ secrets.VIM_RELEASE_GH_TOKEN }}
workflow: push 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

View File

@ -1,3 +1,9 @@
## 1.0.2
### Fixes:
- Fixed a bug causing status stuck in 'initializing' when script not found.
## 1.0.1 ## 1.0.1
### Fixes: ### Fixes:

View File

@ -50,5 +50,5 @@ function! tabby#globals#Load()
" Version of Tabby plugin. Not configurable. " Version of Tabby plugin. Not configurable.
let g:tabby_version = "1.0.1" let g:tabby_version = "1.0.2"
endfunction endfunction

View File

@ -1,6 +1,6 @@
{ {
"name": "vim-tabby", "name": "vim-tabby",
"version": "1.0.1", "version": "1.0.2",
"description": "Vim plugin for Tabby AI coding assistant.", "description": "Vim plugin for Tabby AI coding assistant.",
"repository": "https://github.com/TabbyML/tabby", "repository": "https://github.com/TabbyML/tabby",
"scripts": { "scripts": {