From bec78b38face0f9c5d7372faa41ffdba318ffc94 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sat, 4 May 2024 20:51:49 +0300 Subject: [PATCH] [test] Add Wiki sync workflow --- .github/workflows/sync-wiki.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..69d80d7 --- /dev/null +++ b/.github/workflows/sync-wiki.yml @@ -0,0 +1,23 @@ +name: Sync Wiki + +on: + push: + branches: [ wiki/master ] + +jobs: + wiki-sync: + name: Sync Wiki + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: Add Wiki remote + run: | + git remote add wiki ${{ github.server_url }}/${{ github.repository }}.wiki.git + git fetch wiki + + - name: 'Push Wiki branch to Wiki repo' + run: | + git push wiki wiki/master:master