mirror of
https://github.com/acamarata/luxon-hijri.git
synced 2026-07-01 11:14:29 +00:00
37 lines
889 B
YAML
37 lines
889 B
YAML
name: Wiki Sync
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '.github/wiki/**'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
sync:
|
|
name: Sync .github/wiki/ to GitHub Wiki
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Push wiki pages
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: ${{ github.repository }}.wiki
|
|
path: wiki-repo
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Copy wiki files
|
|
run: |
|
|
cp .github/wiki/*.md wiki-repo/
|
|
|
|
- name: Commit and push
|
|
working-directory: wiki-repo
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add -A
|
|
git diff --cached --quiet || git commit -m "Sync wiki from .github/wiki/ [skip ci]"
|
|
git push
|