Skip to content

Update Wiki

Update Wiki #199

Workflow file for this run

name: Update Wiki
on:
schedule:
- cron: '0 0 * * *'
jobs:
update_wiki:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Clone Wiki Repository
run: |
git clone https://github.com/3BMLabs/building.py.wiki.git wiki
- name: Copy Documentation to Wiki
run: |
cp docs/usage/*.md wiki/
- name: Commit and Push Changes to Wiki
env:
MY_WIKI_PAT: ${{ secrets.MY_WIKI_PAT }}
run: |
cd wiki
git add .
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Update wiki documentation" || true
git push --set-upstream https://${{ env.MY_WIKI_PAT }}@github.com/3BMLabs/building.py.wiki.git