Skip to content

Commit

Permalink
Github action to update options listing on wiki (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfork authored Aug 27, 2023
1 parent ca4bd75 commit e66acf9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/update_wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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.8
- 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
2 changes: 1 addition & 1 deletion src/domdiv/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def drawInfo(self, printIt=True):
text += "</b></font></para>\n"
text += blank_line
text += "Online generator at: "
text += "<a href='http://domtabs.sandflea.org/' color='blue'>http://domtabs.sandflea.org</a>\n\n"
text += "<a href='http://domdiv.bgtools.net/' color='blue'>http://domdiv.bgtools.net</a>\n\n"
text += "Source code on GitHub at: "
text += "<a href='https://github.com/sumpfork/dominiontabs' color='blue'>"
text += "https://github.com/sumpfork/dominiontabs</a>\n\n"
Expand Down
2 changes: 1 addition & 1 deletion src/domdiv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parse_opts(cmdline_args=None):
formatter_class=configargparse.ArgumentDefaultsHelpFormatter,
description="Generate Dominion Dividers",
epilog="Source can be found at 'https://github.com/sumpfork/dominiontabs'. "
"An online version can be found at 'http://domtabs.sandflea.org/'. ",
"An online version can be found at 'http://domdiv.bgtools.net/'. ",
)

# Basic Divider Information
Expand Down

0 comments on commit e66acf9

Please sign in to comment.