Skip to content

Commit

Permalink
Merge pull request #11 from dawidd6/dawidd6-patch-1
Browse files Browse the repository at this point in the history
main: support message input
  • Loading branch information
dawidd6 authored Jul 24, 2020
2 parents d0c657c + d767c08 commit a40eb3a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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?
Expand Down

0 comments on commit a40eb3a

Please sign in to comment.