Debian Codegraph @

.github/workflows/autogen.yml

raw
1 name: autogen
2 on:
3 push:
4 branches: [master]
5 paths:
6 - "lua/**.lua"
7 - "examples/**.lua"
8 - "tests/**.lua"
9 - ".stylua.toml"
10 - "README.md"
11
12 # Cancel any in-progress CI runs for a PR if it is updated
13 concurrency:
14 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
15 cancel-in-progress: true
16
17 jobs:
18 autogen:
19 name: "(vimdoc|formating)"
20 runs-on: ubuntu-22.04
21 timeout-minutes: 10
22 permissions:
23 contents: write
24 pull-requests: write
25 steps:
26 - uses: actions/checkout@v2
27 - name: Generate docs with panvimdoc
28 uses: kdheepak/[email protected]
29 with:
30 vimdoc: lualine
31 description: fast and easy to configure statusline plugin for neovim
32 - name: Apply stylua
33 uses: JohnnyMorganz/[email protected]
34 with:
35 token: ${{ secrets.GITHUB_TOKEN }}
36 args: --config-path=.stylua.toml lua/ examples/ tests/
37 version: 0.14.1
38 - name: Push changes
39 uses: stefanzweifel/git-auto-commit-action@v4
40 with:
41 commit_user_name: github-actions[bot]
42 commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
43 commit_message: "chore: autogen (vimdocs+formating)"
44 branch: ${{ github.head_ref }}
45 file_pattern: lua/ examples/ tests/ doc/lualine.txt