forked from sumpfork/dominiontabs
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.23 KB
/
update_wiki.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
41
42
name: Update wiki
on:
push:
branches: [master]
concurrency:
group: update_wiki
cancel-in-progress: true
permissions:
contents: write
jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{github.repository}}.wiki
path: wiki_repo
- uses: actions/checkout@v3
with:
path: repo
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dominion-dividers
run: |
cd repo
pip install -r requirements.txt
pip install .
- name: Generate Options Doc
shell: bash
run: |
cd wiki_repo
echo '```' > "Documentation-(Script-Options).md"
dominion_dividers --help >> "Documentation-(Script-Options).md"
echo '```' >> "Documentation-(Script-Options).md"
- name: Commit files
run: |
cd wiki_repo
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add "Documentation-(Script-Options).md"
git diff-index --quiet HEAD || git commit -m "Update script options on wiki" && git push