-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 |
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
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
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