From 074f73fd3fc3aa261839580d4ab6f330e43ca20a Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sat, 4 May 2024 20:51:49 +0300 Subject: [PATCH] Add Wiki sync workflow --- .github/workflows/sync-wiki.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/sync-wiki.yml diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml new file mode 100644 index 0000000..94f4d4f --- /dev/null +++ b/.github/workflows/sync-wiki.yml @@ -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 wikirepo + + - name: 'Push Wiki branch to Wiki repo' + run: | + git push wikirepo wiki/master:master