rusefi_documentation/.github/workflows/sync-wiki.yaml

38 lines
897 B
YAML
Raw Normal View History

2020-08-21 13:08:33 -07:00
#
# ACCESS_TOKEN - Personal Access Token with "public_repo" permission
#
2020-08-17 10:57:13 -07:00
name: Sync Wiki
2020-08-17 11:17:17 -07:00
on:
push:
branches:
- master
2020-08-17 10:57:13 -07:00
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Check out docs repo
uses: actions/checkout@v2
with:
fetch-depth: 0
2020-08-17 13:09:12 -07:00
repository: rusefi/rusefi.wiki
2020-08-17 10:57:13 -07:00
persist-credentials: false
2020-08-21 13:08:33 -07:00
- name: Merge from rusefi_documentation
2020-08-17 10:57:13 -07:00
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
2020-08-21 13:08:33 -07:00
- name: Push changes rusefi/rusefi wiki
2020-08-17 10:57:13 -07:00
uses: ad-m/github-push-action@master
with:
2020-08-17 13:09:12 -07:00
repository: rusefi/rusefi.wiki
2020-08-17 10:57:13 -07:00
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: master