mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Add Wiki to main repo to allow pull requests for improvements (#1647)
This commit is contained in:
41
.github/workflows/wiki.yml
vendored
Normal file
41
.github/workflows/wiki.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: GitHub Wiki upload
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths: [docs/**, .github/workflows/wiki.yml]
|
||||
|
||||
concurrency:
|
||||
group: wiki
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
wiki:
|
||||
name: Publish to GitHub Wiki
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{github.repository}}
|
||||
path: ${{github.repository}}
|
||||
|
||||
- name: Checkout Wiki
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{github.repository}}.wiki
|
||||
path: ${{github.repository}}.wiki
|
||||
|
||||
- name: Push to wiki
|
||||
run: |
|
||||
set -e
|
||||
cd $GITHUB_WORKSPACE/${{github.repository}}.wiki
|
||||
cp -r $GITHUB_WORKSPACE/${{github.repository}}/docs/* .
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "action: wiki sync" && git push
|
||||
Reference in New Issue
Block a user