Skip to content

Update lumberjack.md (#218) #320

Update lumberjack.md (#218)

Update lumberjack.md (#218) #320

Workflow file for this run

name: Update wiki posts
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
update-posts:
runs-on: ubuntu-latest
name: "Update posts"
steps:
- name: Clone posts repository
uses: actions/checkout@v3
with:
clean: true
path: "posts"
token: ${{ secrets.CI_TOKEN }}
- name: Clone wiki repository
uses: actions/checkout@v3
with:
clean: true
repository: "liberty-mp/wiki-website"
path: "wiki"
ref: "main"
token: ${{ secrets.CI_TOKEN }}
- name: Update posts
if: always()
shell: bash
run: |
mkdir ./wiki/new_wiki
mv -f ./wiki/wiki/.vitepress ./wiki/new_wiki
mv -f ./wiki/wiki/public ./wiki/new_wiki
mv -f ./wiki/wiki/vite.config.ts ./wiki/new_wiki
mv -f ./posts/* ./wiki/new_wiki
rm -rf ./wiki/wiki
mv -f ./wiki/new_wiki ./wiki/wiki
cd wiki
git config --global user.email "[email protected]"
git config --global user.name "liberty.mp"
git status
git add .
git commit -m "Update posts with ${{ github.sha }}" || true
git push || true