Merge pull request #9284 from iMichka/first

pr-pull: fix empty workflow check
This commit is contained in:
Michka Popoff 2020-11-25 17:49:21 +01:00 committed by GitHub
commit 9c3515ce73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,9 +419,10 @@ module Homebrew
) )
if args.ignore_missing_artifacts.present? && if args.ignore_missing_artifacts.present? &&
args.ignore_missing_artifacts.include?(workflow) && args.ignore_missing_artifacts.include?(workflow) &&
workflow_run.empty? workflow_run.first.blank?
# Ignore that workflow as it was not executed and we specified # Ignore that workflow as it was not executed and we specified
# that we could skip it. # that we could skip it.
ohai "Ignoring workflow #{workflow} as requested by --ignore-missing-artifacts"
next next
end end