Disable to add latest label when running with --no-dry-run option

This commit is contained in:
Hiroshi SHIBATA 2024-01-11 17:36:51 +09:00
parent 78cd5b3657
commit b10aa7757e
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -58,7 +58,7 @@ note << "https://github.com/ruby/ruby/compare/#{ARGV[0]}...#{ARGV[1]}\n\n"
if ARGV[2] == "--no-dry-run"
name = ARGV[1].gsub(/v/, "").gsub(/_/, ".")
client.create_release("ruby/ruby", ARGV[1], name: name, body: note)
client.create_release("ruby/ruby", ARGV[1], name: name, body: note, make_latest: "false")
puts "Created a release: https://github.com/ruby/ruby/releases/tag/#{ARGV[1]}"
else
puts note