@@ -40,7 +40,7 @@ def update_workflows():
4040 is_inital_run = False
4141 _ , workflows , error = fetch_github_record_list (GITHUB_WORKFLOWS_ENDPOINT , 'workflows' , rate_limit , detail_log = True )
4242 if error :
43- print (error , file = sys . stderr , flush = True )
43+ print (error )
4444 else :
4545 store_workflows (workflows , is_inital_run )
4646
@@ -105,7 +105,7 @@ def update_run_jobs():
105105 endpoint = GITHUB_JOBS_ENDPOINT .format (GITHUB_REPO = GITHUB_REPO , RUN_ID = run_id )
106106 _ , jobs , error = fetch_github_record_list (endpoint , 'jobs' , adjusted_rate_limit , detail_log = True )
107107 if error :
108- print (error , file = sys . stderr , flush = True )
108+ print (error )
109109 else :
110110 new_jobs .extend (jobs )
111111 count += 1
@@ -186,8 +186,8 @@ def fetch_github_actions_runs(initial_run, rate_limit, latest_previously_stored=
186186 params = {"per_page" : 100 , "page" : page }
187187 resp = requests .get (GITHUB_RUNS_ENDPOINT , headers = headers , params = params )
188188 if resp .status_code != 200 :
189- print (f"fetching from: { GITHUB_RUNS_ENDPOINT } " , file = sys . stderr , flush = True )
190- print (f"GitHub API error: { resp .status_code } { resp .text } " , file = sys . stderr , flush = True )
189+ print (f"fetching from: { GITHUB_RUNS_ENDPOINT } " )
190+ print (f"GitHub API error: { resp .status_code } { resp .text } " )
191191 exit (1 )
192192 data = resp .json ().get ("workflow_runs" , [])
193193 fetched_workflow_runs .extend (data )
0 commit comments