2525
2626from airflow_breeze .global_constants import MIN_GH_VERSION
2727from airflow_breeze .utils .console import console_print
28- from airflow_breeze .utils .run_utils import run_command
28+ from airflow_breeze .utils .github import run_gh_command
2929
3030
3131def tigger_workflow (workflow_name : str , repo : str , branch : str = "main" , ** kwargs ):
@@ -50,7 +50,7 @@ def tigger_workflow(workflow_name: str, repo: str, branch: str = "main", **kwarg
5050 command .extend (["-f" , f"{ key } ={ value } " ])
5151
5252 console_print (f"[blue]Running command: { ' ' .join (command )} [/blue]" )
53- result = run_command (command , capture_output = True , check = False )
53+ result = run_gh_command (command , capture_output = True )
5454
5555 if result .returncode != 0 :
5656 console_print (f"[red]Error running workflow: { result .stderr } [/red]" )
@@ -109,7 +109,7 @@ def get_workflow_run_id(workflow_name: str, repo: str) -> int:
109109 "databaseId" ,
110110 ]
111111
112- result = run_command (command , capture_output = True , check = False )
112+ result = run_gh_command (command , capture_output = True )
113113 if result .returncode != 0 :
114114 console_print (f"[red]Error fetching workflow run ID: { result .stderr } [/red]" )
115115 sys .exit (1 )
@@ -139,7 +139,7 @@ def get_workflow_run_info(run_id: str, repo: str, fields: str) -> dict:
139139 make_sure_gh_is_installed ()
140140 command = ["gh" , "run" , "view" , run_id , "--json" , fields , "--repo" , repo ]
141141
142- result = run_command (command , capture_output = True , check = False )
142+ result = run_gh_command (command , capture_output = True )
143143 if result .returncode != 0 :
144144 console_print (f"[red]Error fetching workflow run status: { result .stderr } [/red]" )
145145 sys .exit (1 )
0 commit comments