-
-
Notifications
You must be signed in to change notification settings - Fork 26
31 lines (26 loc) · 783 Bytes
/
ci.yaml
File metadata and controls
31 lines (26 loc) · 783 Bytes
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
name: ci
on:
push:
paths:
- "**.lua"
branches:
- master
env:
PLUGIN_NAME: Navigator
jobs:
docs:
runs-on: ubuntu-latest
name: emmylua to help doc
steps:
- uses: actions/checkout@v2
- name: Generating help
shell: bash
run: |
curl -Lq https://github.com/numToStr/lemmy-help/releases/latest/download/lemmy-help-x86_64-unknown-linux-gnu.tar.gz | tar xz
./lemmy-help -fact lua/Navigator/init.lua lua/Navigator/mux/{vi,tmux,wezterm}.lua > doc/${{env.PLUGIN_NAME}}.txt
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.head_ref }}
commit_message: "chore(docs): auto-generate `:help` doc"
file_pattern: doc/*.txt