-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
40 lines (36 loc) · 1002 Bytes
/
action.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
39
40
on: push
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/Nexela/Factorio-luacheckrc/0.17/.luacheckrc
name: Generate documentation
on: push
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Clone wiki
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}.wiki
path: .wiki
- name: Parse and generate documentation
uses: p3lim/lua-doc-parser@v2
with:
output: .wiki
- name: Push wiki changes
working-directory: .wiki
run: |
git config user.name CI
git config user.email "<>"
git add .
git diff --quiet HEAD || git commit -m "$GITHUB_SHA"
git push