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 && \