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