Skip to content

Auto update version to 2024.5.31.2 #2

Auto update version to 2024.5.31.2

Auto update version to 2024.5.31.2 #2

Workflow file for this run

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@v4
- name: Checkout wiki
uses: actions/checkout@v4
with:
repository: "${{ github.repository }}.wiki"
path: "lichess-bot.wiki"
- name: Set github bot global config
run: |
git config --global user.email "[email protected]"
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