mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
(cherry picked from commit eedb66b3af
)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
This commit is contained in:
parent
7a79840879
commit
ab222221f7
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ check_for_changed_files() {
|
|||
|
||||
git commit -m "$NEW_COMMIT_MESSAGE"
|
||||
git push
|
||||
|
||||
# After the git push, the new commit will trigger a new build within a few seconds and this build should get cancelled
|
||||
# So, let's just sleep to give the build time to cancel itself without an error
|
||||
# If it doesn't get cancelled for some reason, then exit with an error, because we don't want this build to be green (we just don't want it to generate an error either)
|
||||
sleep 300
|
||||
exit 1
|
||||
else
|
||||
echo -e "\n${RED}ERROR: '$1' caused changes to the following files:${C_RESET}\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue