dev-cmd/dispatch-build-bottle: add --timeout flag
This commit is contained in:
parent
5ffe1a3abc
commit
dc5edb14c3
@ -198,6 +198,9 @@ module Homebrew
|
||||
sig { returns(T.nilable(String)) }
|
||||
def message; end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def timeout; end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def issue; end
|
||||
|
||||
|
@ -17,6 +17,8 @@ module Homebrew
|
||||
EOS
|
||||
flag "--tap=",
|
||||
description: "Target tap repository (default: `homebrew/core`)."
|
||||
flag "--timeout=",
|
||||
description: "Build timeout (in minutes, default: 60)."
|
||||
flag "--issue=",
|
||||
description: "If specified, post a comment to this issue number if the job fails."
|
||||
flag "--macos=",
|
||||
@ -81,6 +83,7 @@ module Homebrew
|
||||
|
||||
# Optional inputs
|
||||
# These cannot be passed as nil to GitHub API
|
||||
inputs[:timeout] = args.timeout if args.timeout
|
||||
inputs[:issue] = args.issue if args.issue
|
||||
inputs[:upload] = args.upload?.to_s if args.upload?
|
||||
inputs[:wheezy] = args.linux_wheezy?.to_s if args.linux_wheezy?
|
||||
|
@ -782,6 +782,7 @@ _brew_dispatch_build_bottle() {
|
||||
--macos
|
||||
--quiet
|
||||
--tap
|
||||
--timeout
|
||||
--upload
|
||||
--verbose
|
||||
--workflow
|
||||
|
@ -603,6 +603,7 @@ __fish_brew_complete_arg 'dispatch-build-bottle' -l linux-wheezy -d 'Use Debian
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l macos -d 'Version of macOS the bottle should be built for'
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l quiet -d 'Make some output more quiet'
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l tap -d 'Target tap repository (default: `homebrew/core`)'
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l timeout -d 'Build timeout (in minutes, default: 60)'
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l upload -d 'Upload built bottles'
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l verbose -d 'Make some output more verbose'
|
||||
__fish_brew_complete_arg 'dispatch-build-bottle' -l workflow -d 'Dispatch specified workflow (default: `dispatch-build-bottle.yml`)'
|
||||
|
@ -738,6 +738,7 @@ _brew_dispatch_build_bottle() {
|
||||
'(--linux --linux-self-hosted)--macos[Version of macOS the bottle should be built for]' \
|
||||
'--quiet[Make some output more quiet]' \
|
||||
'--tap[Target tap repository (default: `homebrew/core`)]' \
|
||||
'--timeout[Build timeout (in minutes, default: 60)]' \
|
||||
'--upload[Upload built bottles]' \
|
||||
'--verbose[Make some output more verbose]' \
|
||||
'--workflow[Dispatch specified workflow (default: `dispatch-build-bottle.yml`)]' \
|
||||
|
@ -1095,6 +1095,8 @@ Build bottles for these formulae with GitHub Actions.
|
||||
|
||||
* `--tap`:
|
||||
Target tap repository (default: `homebrew/core`).
|
||||
* `--timeout`:
|
||||
Build timeout (in minutes, default: 60).
|
||||
* `--issue`:
|
||||
If specified, post a comment to this issue number if the job fails.
|
||||
* `--macos`:
|
||||
|
@ -1563,6 +1563,10 @@ Build bottles for these formulae with GitHub Actions\.
|
||||
Target tap repository (default: \fBhomebrew/core\fR)\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-timeout\fR
|
||||
Build timeout (in minutes, default: 60)\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-issue\fR
|
||||
If specified, post a comment to this issue number if the job fails\.
|
||||
.
|
||||
|
Loading…
x
Reference in New Issue
Block a user