Skip to content

gen

gen #758

Workflow file for this run

name: gen
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs every day
jobs:
gen:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v3
- name: Install Neovim
shell: bash
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: gen
shell: bash
run: |
nvim --clean --headless -c 'so gen_vim.lua' -c 'so gen_api.lua' -c 'so gen_fn.lua' -c 'so gen_opt.lua' -c 'qa!'
git diff --quiet --exit-code && exit
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "auto generate vimdoc"
git push