From 524c7bdb0d78d00299b6bd06922adcdaa2a251e0 Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Mon, 17 Aug 2020 12:57:13 -0500 Subject: [PATCH] add script --- .github/workflows/sync-wiki.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/sync-wiki.yaml diff --git a/.github/workflows/sync-wiki.yaml b/.github/workflows/sync-wiki.yaml new file mode 100644 index 00000000..49bb4970 --- /dev/null +++ b/.github/workflows/sync-wiki.yaml @@ -0,0 +1,32 @@ +name: Sync Wiki + +on: push + branches: + - master + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Check out docs repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + repository: chuckwagoncomputing/rusefi.wiki + persist-credentials: false + + - name: Merge + run: | + git remote add technical-git https://github.com/rusefi/rusefi_documentation.git + git fetch technical-git + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git merge technical-git/master + + - name: Push changes + uses: ad-m/github-push-action@master + with: + repository: chuckwagoncomputing/rusefi.wiki + github_token: ${{ secrets.ACCESS_TOKEN }} + branch: master