Fix duplicate github annotations for rspec failures (#27450)
This commit is contained in:
@@ -38,7 +38,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
# Use the GitHub Annotations formatter for CI
|
||||
if ENV['GITHUB_ACTIONS'] == 'true'
|
||||
if ENV['GITHUB_ACTIONS'] == 'true' && ENV['GITHUB_RSPEC'] == 'true'
|
||||
require 'rspec/github'
|
||||
config.add_formatter RSpec::Github::Formatter
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user