Update nvim plugins #1
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
name: "Update nvim plugins" | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: "51 2 * * *" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-nvim-plugins: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Update neovim plugins | |
run: | | |
cp -r config/nvim $HOME/.config/nvim | |
nvim -- --headless "+Lazy! sync" +qa | |
cp $HOME/.config/nvim/lazy-lock.json config/nvim/lazy-lock.json | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: plugin-updates | |
title: "Update nvim plugins to latest versions" | |
body: "This PR updates the nvim plugins to their latest versions." | |
labels: merge-queue |