-
Notifications
You must be signed in to change notification settings - Fork 68
58 lines (49 loc) 路 1.7 KB
/
Copy pathdocs_and_format.yml
File metadata and controls
58 lines (49 loc) 路 1.7 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Generate docs, format and platforms
on:
push:
branches: ["main"]
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/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.NORDIC_BOT_APP_ID }}
private-key: ${{ secrets.NORDIC_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v6
with:
token: ${{ steps.app-token.outputs.token }}
- 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 }}
- name: Install Neovim
shell: bash
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/v0.10.4/nvim-linux-x86_64.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: Generate platform files
run: "./platforms.sh"