Commit 4c2cbe5b authored by Peter Parente's avatar Peter Parente

Debug info for wiki push failure

parent f1811928
...@@ -87,12 +87,13 @@ git-commit: ## commit outstading git changes and push to remote ...@@ -87,12 +87,13 @@ git-commit: ## commit outstading git changes and push to remote
@git config --global user.name "GitHub Actions" @git config --global user.name "GitHub Actions"
@git config --global user.email "actions@users.noreply.github.com" @git config --global user.email "actions@users.noreply.github.com"
@echo "Publishing outstanding changes in $(LOCAL_PATH) to $(GITHUB_REPOSITORY)"
@cd $(LOCAL_PATH) && \ @cd $(LOCAL_PATH) && \
git remote add publisher https://$(GITHUB_TOKEN)@github.com/$(GITHUB_REPOSITORY).git && \ git remote add publisher https://$(GITHUB_TOKEN)@github.com/$(GITHUB_REPOSITORY).git && \
git checkout master && \ git checkout master && \
git add -A -- . && \ git add -A -- . && \
git commit -m "[ci skip] Automated publish for $(GITHUB_SHA)" || exit 0 && \ git commit -m "[ci skip] Automated publish for $(GITHUB_SHA)" || exit 0
git push -u publisher master @cd $(LOCAL_PATH) && git push -u publisher master
hook/%: export COMMIT_MSG?=$(shell git log -1 --pretty=%B) hook/%: export COMMIT_MSG?=$(shell git log -1 --pretty=%B)
hook/%: export GITHUB_SHA?=$(shell git rev-parse HEAD) hook/%: export GITHUB_SHA?=$(shell git rev-parse HEAD)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment