-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 991 Bytes
/
lemmy-help.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: lemmy-help
on: [push]
env:
PLUGIN_NAME: adopure
jobs:
docs:
runs-on: ubuntu-latest
name: emmylua to vimdoc
steps:
- uses: actions/checkout@v2
- name: Generating help
run: |
host="https://github.com/"
path="numToStr/lemmy-help/releases/latest/download/"
file="lemmy-help-x86_64-unknown-linux-gnu.tar.gz"
curl -Lq "$host$path$file" | tar xz
./lemmy-help \
lua/adopure.lua \
lua/adopure/config/meta.lua \
lua/adopure/state.lua \
lua/adopure/thread.lua \
lua/adopure/quickfix.lua \
lua/adopure/pickers/thread.lua \
lua/adopure/review.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 vimdoc"
file_pattern: doc/*.txt