aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/metadata-diff.yml
blob: 9be6f3c204327718f4f6b6fdb98d298497bae305 (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
name: Metadata diff checker

on:
    schedule:
        - cron: '0 * * * *'
    push:
        branches:
            - 'main'
    pull_request:

jobs:
    metadata-diff-check:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v2
            - uses: rhysd/action-setup-vim@v1
              with:
                neovim: true
                version: v0.5.1
            - name: Clone latest lspconfig
              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
            - name: Run autogen_metadata.sh script
              run: ./scripts/autogen_metadata.sh
            - name: Ensure there are no diffs
              run: |
                git update-index --refresh
                git diff-index --quiet HEAD --