From a7d6d765f5d35f3fa42bc95287f68809d860e52c Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Sat, 8 Aug 2020 14:06:23 -0400 Subject: [PATCH] [ci skip] Fix wiki commit step, use single shell session --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 69c04363..b15b7e0b 100644 --- a/Makefile +++ b/Makefile @@ -87,11 +87,11 @@ git-commit: ## commit outstading git changes and push to remote @git config --global user.email "actions@users.noreply.github.com" @git remote add publisher https://$(GITHUB_TOKEN)@github.com/$(GITHUB_REPOSITORY).git - @cd $(LOCAL_PATH) - @git checkout master - @git add -A -- . - @git commit -m "[ci skip] Automated publish for $(GITHUB_SHA)" || exit 0 - @git push -u publisher master + @cd $(LOCAL_PATH) && \ + git checkout master && \ + git add -A -- . && \ + git commit -m "[ci skip] Automated publish for $(GITHUB_SHA)" || exit 0 && \ + git push -u publisher master hook/%: export COMMIT_MSG?=$(shell git log -1 --pretty=%B) hook/%: export GITHUB_SHA?=$(shell git rev-parse HEAD)