aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/run-autogen.yml
blob: 1eaffb826f190cbfb483150a29e31268350edc67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Run autogen script

on:
    schedule:
        - cron: "15 13 * * *"

jobs:
    run-autogen-script:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v2
              with:
                  token: ${{ secrets.PAT }}
            - uses: rhysd/action-setup-vim@v1
              with:
                  neovim: true
                  version: v0.6.0

            - name: Clone dependencies
              run: |
                  mkdir -p ~/.local/share/nvim/site/pack/packer/start
                  git clone --depth 1 https://github.com/neovim/nvim-lspconfig ~/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
                  git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/packer/start/plenary.nvim

            - name: Run autogen_metadata.sh script
              run: ./scripts/autogen_metadata.sh

            - name: Commit and push changes
              run: |
                  git config --local user.email "william@redwill.se"
                  git config --local user.name "William Boman (automated)"
                  if git commit -m "run autogen_metadata.lua" -- lua/nvim-lsp-installer/_generated; then
                    git push
                  fi