# Uses the contents of the ./docs directory for Dashy's GH Wiki page
name: 📊 Wiki Sync
on:
  workflow_dispatch: # Manual dispatch
  schedule:
    - cron: '0 1 * * 0' # At 01:00 on Sunday.
jobs:
  update-wiki:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v4
    - name: Upload Docs to GH Wiki
      uses: docker://decathlon/wiki-page-creator-action:2.0.3
      env:
        GH_PAT: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
        ACTION_MAIL: alicia-gh-bot@mail.as93.net
        ACTION_NAME: liss-bot
        OWNER: Lissy93
        REPO_NAME: Dashy
        MD_FOLDER: docs/
