From b53eb17388154ba3ce38d9eee18a72ab4f306aaa Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Sat, 29 Mar 2025 22:48:22 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tools/_sunrise/actions_changelogs_since_last_run.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tools/_sunrise/actions_changelogs_since_last_run.py b/Tools/_sunrise/actions_changelogs_since_last_run.py index f1ddd428ec..dbd463986d 100755 --- a/Tools/_sunrise/actions_changelogs_since_last_run.py +++ b/Tools/_sunrise/actions_changelogs_since_last_run.py @@ -53,10 +53,12 @@ def main(): send_to_discord(diff) -def get_most_recent_workflow(sess: requests.Session) -> Any: - workflow_run = get_current_run(sess) +def get_most_recent_workflow( + sess: requests.Session, github_repository: str, github_run: str +) -> Any: + workflow_run = get_current_run(sess, github_repository, github_run) past_runs = get_past_runs(sess, workflow_run) - for run in past_runs['workflow_runs']: + for run in past_runs["workflow_runs"]: # First past successful run that isn't our current run. if run["id"] == workflow_run["id"]: continue