Skip to content

docs: Add a first wiki entry #2

docs: Add a first wiki entry

docs: Add a first wiki entry #2

Workflow file for this run

name: Sync Wiki
on:
push:
branches:
- main
paths:
- 'wiki/**'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to wiki
run: |
git clone https://github.com/${{ github.repository }}.wiki.git
rsync -a --delete wiki/ ./${{ github.repository }}.wiki/
cd ./${{ github.repository }}.wiki
git config user.name WikiBot
git config user.email [email protected]
git add .
git commit -m "docs: Update wiki" || echo "No changes to commit"
git push
env:
GH_TOKEN: ${{ secrets.WIKI_TOKEN }}