From d1f73487edaaa20b14ac05d290a0dd0375e362d7 Mon Sep 17 00:00:00 2001 From: Nemo Date: Wed, 27 Apr 2022 16:45:47 +0530 Subject: [PATCH] Fix failing jobs --- update.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update.rb b/update.rb index 429c306e..583fa300 100644 --- a/update.rb +++ b/update.rb @@ -86,7 +86,7 @@ def generate_commit_message msg += "#{product}: #{new_versions.join(', ')}\n" end end - ret ? "🤖: #{products.join(', ')}\n\n#{msg}": false + ret ? "🤖: #{products.join(', ')}\n\n#{msg}": "" end Dir.glob("#{WEBSITE_DIR}/products/*.md").each do |product_file| @@ -107,5 +107,4 @@ def github_actions_step_output(msg) puts "::set-output name=commit_message::#{JSON.dump(msg)}" end -msg = generate_commit_message -github_actions_step_output(msg) if msg +github_actions_step_output(generate_commit_message)