Skip to content

Commit

Permalink
chore: update output when tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 11, 2020
1 parent 2cbb224 commit b575b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pact_broker/client/publish_pacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ def tag_consumer_version tag
versions = pact_broker_client.pacticipants.versions
Retry.while_error do
consumer_names.collect do | consumer_name |
$stdout.puts "Tagging version #{consumer_version} of #{consumer_name} as #{tag.inspect}"
versions.tag(pacticipant: consumer_name, version: consumer_version, tag: tag)
$stdout.puts "Tagged version #{consumer_version} of #{consumer_name} as #{tag.inspect}"
true
end
end
rescue => e
$stderr.puts "Failed to tag versions due to error: #{e.class} - #{e}"
$stderr.puts "Failed to tag version due to error: #{e.class} - #{e}"
false
end

Expand Down

0 comments on commit b575b80

Please sign in to comment.