Skip to content

Commit 71e9f3a

Browse files
committed
Explictly check if ENV['GITHUB_ACTIONS'] is true
1 parent 2955ae5 commit 71e9f3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ RSpec::Core::RakeTask.new
2525

2626
RuboCop::RakeTask.new do |task|
2727
task.formatters = ['progress']
28-
task.formatters << 'github' if ENV.key?('GITHUB_ACTIONS')
28+
task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
2929
end

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
require_relative 'sandbox'
88

99
RSpec.configure do |config|
10-
config.color_mode = :on if ENV.key?('GITHUB_ACTIONS')
10+
config.color_mode = :on if ENV['GITHUB_ACTIONS'] == 'true'
1111
config.formatter = :documentation
1212

1313
config.include Console

0 commit comments

Comments
 (0)