Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjuhani committed Sep 1, 2024
1 parent 9fa9686 commit 4f86781
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/lazy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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: Symlink dotfiles
run: |
BASE_PATH="$(git rev-parse --show-toplevel)"
ln -s "$BASE_PATH/.config/nvim" "$HOME/.config/nvim"
- name: Run Updates
id: update
run: |
nvim --version
nvim --headless "+Lazy! update" +qa!
updated_plugins="$(git diff | awk 'NR>6 && /^\+/ { print $2 }' | cut -d'"' -f2)"
echo "updated_plugins=$updated_plugins" >> $GITHB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update lazy-lock
title: Update lazy-lock
body: |
Updates lazy-lock (nvim plugins)
${{ steps.update.outputs.updated_plugins }}
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: lazy-update

0 comments on commit 4f86781

Please sign in to comment.