Only run audit on all casks if individual casks are not tested. (#89182)

This commit is contained in:
Markus Reiter
2020-09-13 05:04:37 +01:00
committed by GitHub
parent 8f46d37e85
commit 4f914ca088
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ jobs:
brew cask audit ${{ join(matrix.audit_args, ' ') }} '${{ matrix.cask.path }}'
timeout-minutes: 30
if: always()
if: always() && !matrix.skip_audit
- name: Gather cask information
id: info
+6 -1
View File
@@ -18,7 +18,12 @@ syntax_job = {
matrix = [syntax_job]
unless labels.include?("ci-syntax-only")
matrix += CiMatrix.generate(tap, labels: labels)
cask_jobs = CiMatrix.generate(tap, labels: labels)
# If casks were changed, skip `audit` for all others.
syntax_job[:skip_audit] = true if cask_jobs.any?
matrix += cask_jobs
end
puts JSON.pretty_generate(matrix)