From d767c083036dbb8584ff484c19fc6dad77559945 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Fri, 24 Jul 2020 20:04:25 +0200 Subject: [PATCH] main: support message input --- main.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.rb b/main.rb index 55d3c0a..72db22c 100755 --- a/main.rb +++ b/main.rb @@ -45,6 +45,7 @@ def read_git(*args) # Get inputs token = ENV['INPUT_TOKEN'] + message = ENV['INPUT_MESSAGE'] tap = ENV['INPUT_TAP'] formula = ENV['INPUT_FORMULA'] tag = ENV['INPUT_TAG'] @@ -85,8 +86,13 @@ def read_git(*args) # Tap the tap if desired brew 'tap', tap unless tap.blank? - # Define additional PR message - message = '[`action-homebrew-bump-formula`](https://github.com/dawidd6/action-homebrew-bump-formula)' + # Append additional PR message + if message.blank? + message = '' + else + message += "\n\n" + end + message += '[`action-homebrew-bump-formula`](https://github.com/dawidd6/action-homebrew-bump-formula)' # Do the livecheck stuff or not if livecheck.false?