Skip to content

Commit

Permalink
фикс actions_changelogs_since_last_run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Jul 22, 2024
1 parent e617dfe commit 7cb0a23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tools/actions_changelogs_since_last_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ def main():
session.headers["X-GitHub-Api-Version"] = "2022-11-28"

most_recent = get_most_recent_workflow(session)

if most_recent is None:
print("No successful publish jobs found.")
return

last_sha = most_recent['head_commit']['id']
print(f"Last successful publish job was {most_recent['id']}: {last_sha}")
last_changelog = yaml.safe_load(get_last_changelog(session, last_sha))

with open(CHANGELOG_FILE, "r") as f:
cur_changelog = yaml.safe_load(f)

Expand Down

0 comments on commit 7cb0a23

Please sign in to comment.