Commit 01ee4093 authored by José Henrique's avatar José Henrique
Browse files

Improve push functions

parent e447cc4a
......@@ -71,10 +71,10 @@ function checkJsons() {
function pushToGit() {
if [ -z "$GIT_PR_NUMBER" ] && [ -n "$(${GIT_CMD} status -s)" ]; then
${GIT_CMD} pull --no-edit origin master
${GIT_CMD} add --all
${GIT_CMD} commit --amend -m "[PIXEL-CI]: ${COMMIT_MESSAGE}"
${GIT_CMD} remote rm origin
${GIT_CMD} remote add origin "https://pixelexperiencebot:${GH_PERSONAL_TOKEN}"
${GIT_CMD} commit -m "[PIXEL-CI]: Lint files"
${GIT_CMD} remote set-url origin "https://pixelexperiencebot:${GH_PERSONAL_TOKEN}"
${GIT_CMD} push origin master
if [ "$RESULT" -eq 0 ]; then
Supports Markdown
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