-
Notifications
You must be signed in to change notification settings - Fork 47
38 lines (31 loc) · 1009 Bytes
/
docs_and_format.yml
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
35
36
37
38
name: Generate docs and format
on:
push:
branches: [ "dev" ]
jobs:
docs-and-fmt:
if: github.event != 'pull_request'
name: Generate docs and format
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- uses: actions/checkout@v2
- name: Panvimdoc generate
uses: kdheepak/panvimdoc@main
with:
vimdoc: nordic.nvim
- name: Run StyLua
uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --config-path=.stylua.toml .
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "CI(bot): Generate docs and format"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
branch: ${{ github.head_ref }}