Skip to content

Woof! 15.0.0 merge #461

Woof! 15.0.0 merge

Woof! 15.0.0 merge #461

Workflow file for this run

name: Update Wiki
on:
push:
branches: [ master ]
tags: ['*']
workflow_dispatch:
jobs:
update-wiki:
if: ${{ github.repository == 'MrAlaux/Nugget-Doom' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: code
- name: Checkout wiki
uses: actions/checkout@v4
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Generate files
run: |
python3 "./code/man/docgen" -M "./code/man/CMDLINE.template.md" \
"./code/src/" > "./wiki/Command-Line-Parameters.md"
cp -af "./code/docs/cheats.md" "./wiki/Cheats.md"
cp -af "./code/docs/nughud.md" "./wiki/NUGHUD.md" # [Nugget]
- name: Push to wiki
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
cd wiki
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "Update wiki" && git push