Update Wiki #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |