dispatch-build-bottle: cleanup

The `upload` input will be made into a boolean in
Homebrew/homebrew-core#127026.

`linux_wheezy` is no longer a valid input to the workflow, so let's get
rid of that.
This commit is contained in:
Carlo Cabrera 2023-03-30 13:37:08 +08:00
parent f4ee196f90
commit c1b4473ed0
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -87,8 +87,7 @@ module Homebrew
# These cannot be passed as nil to GitHub API # These cannot be passed as nil to GitHub API
inputs[:timeout] = args.timeout if args.timeout inputs[:timeout] = args.timeout if args.timeout
inputs[:issue] = args.issue if args.issue inputs[:issue] = args.issue if args.issue
inputs[:upload] = args.upload?.to_s if args.upload? inputs[:upload] = args.upload?
inputs[:wheezy] = args.linux_wheezy?.to_s if args.linux_wheezy?
ohai "Dispatching #{tap} bottling request of formula \"#{formula.name}\" for #{runners.join(", ")}" ohai "Dispatching #{tap} bottling request of formula \"#{formula.name}\" for #{runners.join(", ")}"
GitHub.workflow_dispatch_event(user, repo, workflow, ref, inputs) GitHub.workflow_dispatch_event(user, repo, workflow, ref, inputs)