mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
ci: fix manual auditing
This commit is contained in:
@@ -7,12 +7,12 @@ on:
|
||||
casks:
|
||||
description: List of casks to audit (comma-separated)
|
||||
required: true
|
||||
skip-install:
|
||||
skip_install:
|
||||
description: Skip installation of casks
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
new-cask:
|
||||
new_cask:
|
||||
description: Apply new cask audit
|
||||
required: false
|
||||
default: false
|
||||
|
||||
@@ -33,16 +33,13 @@ module Homebrew
|
||||
skip_install = args.skip_install?
|
||||
new_cask = args.new_cask?
|
||||
casks = args.casks if args.casks&.any?
|
||||
pr_url = args.url
|
||||
|
||||
if args.url.present?
|
||||
pr_url = args.url
|
||||
|
||||
labels = if pr_url
|
||||
pr = GitHub::API.open_rest(pr_url)
|
||||
pr.fetch("labels").map { |l| l.fetch("name") }
|
||||
else
|
||||
[]
|
||||
end
|
||||
labels = if pr_url
|
||||
pr = GitHub::API.open_rest(pr_url)
|
||||
pr.fetch("labels").map { |l| l.fetch("name") }
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
||||
tap = Tap.fetch(ENV.fetch("GITHUB_REPOSITORY"))
|
||||
|
||||
Reference in New Issue
Block a user