From c555aa156c4f96e82ff788d570f62027d6d14fff Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 24 Jul 2024 19:24:48 +0800 Subject: [PATCH] chore(async): detach SourceCounter.vim --- .ci/detach_plugin.sh | 33 +++++++++++++++++++ .github/workflows/async.yml | 2 +- bundle/SourceCounter.vim/LICENSE | 21 ------------ .../autoload/SourceCounter.vim | 1 - 4 files changed, 34 insertions(+), 23 deletions(-) delete mode 100644 bundle/SourceCounter.vim/LICENSE diff --git a/.ci/detach_plugin.sh b/.ci/detach_plugin.sh index c587e43a1..82deb4d1c 100755 --- a/.ci/detach_plugin.sh +++ b/.ci/detach_plugin.sh @@ -179,6 +179,39 @@ main () { rm -rf detach/$1 exit 0 ;; + SourceCounter.vim) + git clone https://github.com/wsdjeg/SourceCounter.vim.git detach/$1 + cd detach/$1 + _checkdir plugin + _detact_bundle SourceCounter.vim plugin/SourceCounter.vim + _checkdir autoload + _detact_bundle SourceCounter.vim autoload/SourceCounter.vim + _checkdir doc + _detact_bundle SourceCounter.vim doc/SourceCounter.vim.txt + _detact_bundle SourceCounter.vim README.md + _detact_bundle SourceCounter.vim addon-info.json + _detact LICENSE + _checkdir pic + _detact_bundle SourceCounter.vim pic/screen.png + _checkdir autoload/SpaceVim/api/vim + _checkdir autoload/SpaceVim/api/data + _detact autoload/SpaceVim/api/notify.vim + _detact autoload/SpaceVim/api/data/string.vim + _detact autoload/SpaceVim/api/data/number.vim + _detact autoload/SpaceVim/api/vim/buffer.vim + _detact autoload/SpaceVim/api/vim/floatting.vim + _checkdir autoload/SpaceVim/api/neovim + _detact autoload/SpaceVim/api/neovim/floatting.vim + git add . + git config user.email "eric@wsdjeg.net" + git config user.name "Eric Wong" + git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}" + git remote add wsdjeg_sourcecounter https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/cpicker.nvim.git + git push wsdjeg_sourcecounter master + cd - + rm -rf detach/$1 + exit 0 + ;; iedit) git clone https://github.com/wsdjeg/iedit.vim.git detach/$1 cd detach/$1 diff --git a/.github/workflows/async.yml b/.github/workflows/async.yml index e7ad9b966..02c709e2e 100644 --- a/.github/workflows/async.yml +++ b/.github/workflows/async.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - detachPlugin: ["flygrep", "dein-ui", "vim-todo", "iedit", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "github.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim"] + detachPlugin: ["flygrep", "dein-ui", "vim-todo", "iedit", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "github.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim", "SourceCounter.vim"] runs-on: ubuntu-latest steps: - name: Checkout diff --git a/bundle/SourceCounter.vim/LICENSE b/bundle/SourceCounter.vim/LICENSE deleted file mode 100644 index 8084695de..000000000 --- a/bundle/SourceCounter.vim/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 Wang Shidong - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/bundle/SourceCounter.vim/autoload/SourceCounter.vim b/bundle/SourceCounter.vim/autoload/SourceCounter.vim index b73afdf1e..dccbdd7b6 100644 --- a/bundle/SourceCounter.vim/autoload/SourceCounter.vim +++ b/bundle/SourceCounter.vim/autoload/SourceCounter.vim @@ -1,4 +1,3 @@ -let s:JOB = SpaceVim#api#import('job') let s:NOTI = SpaceVim#api#import('notify') scriptencoding utf-8