Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-07-25 02:50:27 +0300
committerEvan Read <eread@gitlab.com>2022-07-25 02:50:27 +0300
commitbe1ea121f7037189090965d4fce30581371b9b53 (patch)
treeabe89a59c3ac7cd3435852de27d1787af8867329
parentc6f57d01b0b98fd7f06556e8d3f9f5cfe2abd2fc (diff)
parent7a62774b50657d14f44dd765bebd2f88e1c835b6 (diff)
Merge branch 'axil-lefthook-rakefile' into 'main'
Automatically push the new stable branch with "bin/rake release:single" See merge request gitlab-org/gitlab-docs!2934
-rw-r--r--Rakefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 8de2eed7..2ac97f10 100644
--- a/Rakefile
+++ b/Rakefile
@@ -79,6 +79,10 @@ namespace :release do
version = args.version.to_s
source_dir = File.expand_path(__dir__)
+ # Disable lefthook because it was causing some PATH errors
+ # https://docs.gitlab.com/ee/development/contributing/style_guides.html#disable-lefthook-temporarily
+ ENV['LEFTHOOK'] = '0'
+
raise 'You need to specify a version, like 10.1' unless version.match?(%r{\A\d+\.\d+\z})
# Check if local branch exists
@@ -130,7 +134,9 @@ namespace :release do
`git commit -m 'Release cut #{version}'`
puts "\n#{COLOR_CODE_GREEN}INFO: Created new Dockerfile:#{COLOR_CODE_RESET} #{dockerfile}."
- puts "#{COLOR_CODE_GREEN}INFO: To push the new branch, run:#{COLOR_CODE_RESET} git push origin #{version}."
+ puts "#{COLOR_CODE_GREEN}INFO: Pushing the new branch. Don't create a merge request!#{COLOR_CODE_RESET}"
+
+ `git push origin #{version}`
end
end