mirror of
https://github.com/acamarata/solar-spa.git
synced 2026-07-01 11:24:28 +00:00
36 lines
849 B
YAML
36 lines
849 B
YAML
name: Sync Wiki
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: ['.github/wiki/**']
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
sync:
|
|
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: .wiki-remote
|
|
|
|
- name: Sync wiki pages
|
|
run: |
|
|
cp .github/wiki/*.md .wiki-remote/
|
|
cd .wiki-remote
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add -A
|
|
if git diff --cached --quiet; then
|
|
echo "No wiki changes to commit"
|
|
else
|
|
git commit -m "Sync wiki from repo"
|
|
git push
|
|
fi
|