mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Only run audit on all casks if individual casks are not tested. (#89182)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user