os/mac/diagnostic: allow use of GitHub Actions CI.

We will be migrating Homebrew/brew to use this in the near future.
This commit is contained in:
Mike McQuaid 2019-08-15 20:45:48 +01:00
parent 72c8a04c84
commit e1c00f2358
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -72,7 +72,7 @@ module Homebrew
# `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew # `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew
# repository. This only needs to support whatever CI providers # repository. This only needs to support whatever CI providers
# Homebrew/brew is currently using. # Homebrew/brew is currently using.
return if ENV["HOMEBREW_AZURE_PIPELINES"] return if ENV["HOMEBREW_AZURE_PIPELINES"] || ENV["HOMEBREW_GITHUB_ACTIONS"]
message = <<~EOS message = <<~EOS
Your Xcode (#{MacOS::Xcode.version}) is outdated. Your Xcode (#{MacOS::Xcode.version}) is outdated.
@ -99,7 +99,7 @@ module Homebrew
# `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew # `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew
# repository. This only needs to support whatever CI providers # repository. This only needs to support whatever CI providers
# Homebrew/brew is currently using. # Homebrew/brew is currently using.
return if ENV["HOMEBREW_AZURE_PIPELINES"] return if ENV["HOMEBREW_AZURE_PIPELINES"] || ENV["HOMEBREW_GITHUB_ACTIONS"]
<<~EOS <<~EOS
A newer Command Line Tools release is available. A newer Command Line Tools release is available.