mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
add update_wiki.yml
This commit is contained in:
parent
7579b3dfc1
commit
538df5213c
36
.github/workflows/update_wiki.yml
vendored
Normal file
36
.github/workflows/update_wiki.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: update wiki
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
tags: ['*']
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Update-Wiki:
|
||||
name: Update Wiki
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: code
|
||||
- name: Checkout wiki
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{github.repository}}.wiki
|
||||
path: wiki
|
||||
- name: Generate files
|
||||
run: |
|
||||
python3 "./code/man/docgen.py" -M "./code/man/CMDLINE.template.md" "./code/src/" > "./wiki/CMDLINE.md"
|
||||
- name: Push to wiki
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
run: |
|
||||
cd wiki
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "Update CMDLINE.md" && git push
|
Loading…
x
Reference in New Issue
Block a user