Spaces:
Runtime error
Runtime error
| name: Sync wiki | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'wiki/**' | |
| - 'README.md' | |
| jobs: | |
| sync: | |
| if: github.repository == 'lichess-bot-devs/lichess-bot' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7 | |
| - name: Checkout wiki | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: "${{ github.repository }}.wiki" | |
| path: "lichess-bot.wiki" | |
| - name: Set github bot global config | |
| run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "actions-user" | |
| - name: Sync all files to wiki | |
| run: | | |
| cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/lichess-bot.wiki/Home.md | |
| cp -r $GITHUB_WORKSPACE/wiki/* $GITHUB_WORKSPACE/lichess-bot.wiki | |
| cd $GITHUB_WORKSPACE/lichess-bot.wiki | |
| git add . | |
| git commit -m "Auto update wiki" | |
| git push | |