Skip to content

Commit

Permalink
Add Wiki sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylyzo committed May 4, 2024
1 parent 545d36f commit 074f73f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sync-wiki.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/[email protected]
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 wikirepo
- name: 'Push Wiki branch to Wiki repo'
run: |
git push wikirepo wiki/master:master

0 comments on commit 074f73f

Please sign in to comment.