Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Infra
CI Jobs
Official Devices Validator
Commits
01ee4093
Commit
01ee4093
authored
Aug 30, 2020
by
José Henrique
Browse files
Improve push functions
parent
e447cc4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
runner.sh
View file @
01ee4093
...
...
@@ -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
}
@github.com/PixelExperience/official_devices.git"
${
GIT_CMD
}
commit
-m
"[PIXEL-CI]: Lint files"
${
GIT_CMD
}
remote set-url origin
"https://pixelexperiencebot:
${
GH_PERSONAL_TOKEN
}
@github.com/PixelExperience/official_devices.git"
${
GIT_CMD
}
push origin master
RESULT
=
$?
if
[
"
$RESULT
"
-eq
0
]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment