diff --git a/Library/Homebrew/cli/args.rbi b/Library/Homebrew/cli/args.rbi index bb9d9a9716..c7746169fe 100644 --- a/Library/Homebrew/cli/args.rbi +++ b/Library/Homebrew/cli/args.rbi @@ -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 diff --git a/Library/Homebrew/dev-cmd/dispatch-build-bottle.rb b/Library/Homebrew/dev-cmd/dispatch-build-bottle.rb index b42d774713..5c1a19bf00 100644 --- a/Library/Homebrew/dev-cmd/dispatch-build-bottle.rb +++ b/Library/Homebrew/dev-cmd/dispatch-build-bottle.rb @@ -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? diff --git a/completions/bash/brew b/completions/bash/brew index d94765b791..55b139d0ac 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -782,6 +782,7 @@ _brew_dispatch_build_bottle() { --macos --quiet --tap + --timeout --upload --verbose --workflow diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 5bd9c6ee0f..23f0e9e64b 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -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`)' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index fb6ecc7703..21f81a98e3 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -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`)]' \ diff --git a/docs/Manpage.md b/docs/Manpage.md index 8b32b17213..4639418d0a 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -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`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 476bb9b759..33e1c73506 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -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\. .