Skip to content

Commit

Permalink
Merge pull request jellyfin#250 from dmitrylyzo/gha-wiki-sync
Browse files Browse the repository at this point in the history
Add Wiki sync workflow
  • Loading branch information
dmitrylyzo authored May 5, 2024
2 parents d2d904d + f80b638 commit 45473aa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/wiki-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sync Wiki

on:
push:
branches:
- wiki/master
workflow_dispatch:

jobs:
wiki-sync:
name: Sync Wiki
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: wiki/master
fetch-depth: 100

- name: Add Wiki remote
run: |
git remote add wikirepo ${{ github.server_url }}/${{ github.repository }}.wiki.git
git fetch --depth=100 wikirepo
- name: Push Wiki branch to Wiki repo
run: |
git push wikirepo wiki/master:master

0 comments on commit 45473aa

Please sign in to comment.