rusefi-1/.github/workflows/sync-wiki.yaml

35 lines
889 B
YAML
Raw Normal View History

2020-08-21 12:48:44 -07:00
#
# ACCESS_TOKEN - Personal Access Token with "public_repo" permission
#
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
2020-08-21 12:48:44 -07:00
- name: Merge from rusefi/wiki
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
2020-08-21 12:48:44 -07:00
- name: Push changes to rusefi_documentation technical wiki
uses: ad-m/github-push-action@master
with:
repository: rusefi/rusefi_documentation
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: master