From a3a9259437e3d87dab4b6611949a77080938d174 Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Sat, 8 Aug 2020 23:59:51 -0400 Subject: [PATCH] Fix git-commit upstream cd before configuring --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8955e98f..f334a3c0 100644 --- a/Makefile +++ b/Makefile @@ -86,9 +86,9 @@ git-commit: GITHUB_TOKEN?= git-commit: ## commit outstading git changes and push to remote @git config --global user.name "GitHub Actions" @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 remote add publisher https://$(GITHUB_TOKEN)@github.com/$(GITHUB_REPOSITORY).git git checkout master && \ git add -A -- . && \ git commit -m "[ci skip] Automated publish for $(GITHUB_SHA)" || exit 0 && \