Skip to content

Workflow file for this run

name: Update Neovim Plugins
on: push
# schedule:
# Run Daily
# - cron: "0 23 * * *"
# workflow_dispatch:
jobs:
update:
name: Lazy update
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: Homebrew/actions/setup-homebrew@master
- name: Install Neovim
run: |
brew install nvim
- name: Copy dotfiles
run: |
base_path="$(git rev-parse --show-toplevel)"
rm -r "$HOME/.config/nvim"
ln -s "$base_path/.config/nvim" "$HOME/.config/nvim"
- name: Run Updates
run: |
nvim --version
nvim --headless "+Lazy! update" +qa!
git diff | awk 'NR>6 && /^\+/ { print $2 }' | cut -d'"' -f2