Sync wiki to rusefi_documentation. (#1698)

* add workflow

* remove hyphen

* merge and push

* tabs to spaces

* config before merge

* dont need to commit duh

* don't use action

* tabs to spaces

* try action again

* use access token

* dont persist credentials

* switch to rusefi
This commit is contained in:
David Holdeman 2020-08-17 17:13:18 -05:00 committed by GitHub
parent 33a2354e44
commit a04d02921a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
.github/workflows/sync-wiki.yaml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Sync Wiki
on: gollum
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Check out docs repo
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: rusefi/rusefi_documentation
persist-credentials: false
- name: Merge
run: |
git remote add best-wiki-git https://github.com/rusefi/rusefi.wiki.git
git fetch best-wiki-git
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git merge best-wiki-git/master
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: rusefi/rusefi_documentation
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: master