don't try to overwrite sync-wiki.yaml (#2355)

* don't try to overwrite sync-wiki.yaml

* add comments
This commit is contained in:
David Holdeman 2021-02-14 21:04:00 -06:00 committed by GitHub
parent aae5c61d37
commit ef34960670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -37,7 +37,14 @@ jobs:
git show --name-only best-wiki-git/master
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git merge best-wiki-git/master
# merge, but don't commit the merge
git merge --no-ff --no-commit best-wiki-git/master
# unstage the file
git reset HEAD .github/workflows/sync-wiki.yaml
# revert the file to its original state
git checkout -- .github/workflows/sync-wiki.yaml
# commit the merge
git commit -m "merge rusEFI wiki"
- name: Push changes to rusefi_documentation technical wiki
uses: ad-m/github-push-action@master