Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/wiki-sync-test.
Something went wrong. Try again.
655 B · 22 lines
YAML
at main
12345678910111213141516171819202122name: docson: gollumjobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: recursive - name: Push wiki changes run: | cd docs git reset --hard origin/master git pull origin master GIT_USER=`git show --format='%aN' --quiet` GIT_EMAIL=`git show --format='%aE' --quiet` GIT_COMMIT=`git log -1 --pretty='%s'` cd .. git config --local user.name $GIT_USER git config --local user.email $GIT_EMAIL git add . git diff-index --quiet HEAD || git commit -m "$GIT_COMMIT" && git push