-
Notifications
You must be signed in to change notification settings - Fork 185
40 lines (30 loc) · 865 Bytes
/
main.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
# This is a basic workflow to help you get started with Actions
name: gen-wiki
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
gen-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install deps
run: pip3 install scrap_engine
- name: gen-wiki
run: python3 ./gen_wiki.py
- name: Commit files
run: |
git config --local user.name ${{ github.actor }}
if [[ $(git diff) != "" ]]
then
git pull
git add ./wiki.md
git commit -m "Updated wiki"
fi
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
fetch-depth: 0
github_token: ${{ secrets.GITHUB_TOKEN }}
force: false