From 58f63e4f1647986542a60ad23fd7086b14b56c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=86=A0=E9=AD=81?= Date: Thu, 5 Oct 2023 13:24:10 +0900 Subject: [PATCH] Update update_versions.py --- .github/scripts/update_versions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/update_versions.py b/.github/scripts/update_versions.py index fbd07026..de3253d3 100644 --- a/.github/scripts/update_versions.py +++ b/.github/scripts/update_versions.py @@ -23,11 +23,11 @@ def create_pr(): repo = g.get_repo("dignite-projects/dignite-abp") branch_name = f"update-latest-versions-{os.environ['GITHUB_REF'].split('/')[-1]}" - base = repo.get_branch("dev") + base = repo.get_branch("main") repo.create_git_ref(ref=f"refs/heads/{branch_name}", sha=base.commit.sha) # Get the current latest-versions.json file and its sha - contents = repo.get_contents("latest-versions.json", ref="dev") + contents = repo.get_contents("latest-versions.json", ref="main") file_sha = contents.sha # Update the file in the repo @@ -42,7 +42,7 @@ def create_pr(): try: pr = repo.create_pull(title="Update latest-versions.json", body="Automated PR to update the latest-versions.json file.", - head=branch_name, base="dev") + head=branch_name, base="main") except Exception as e: print(f"Error while creating PR: {e}")