From 31d846511337a97802d3280212d77fa4f871394a Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Sun, 25 Feb 2024 18:55:23 +0700 Subject: [PATCH] Fixes syntax error for Update PR Actions (#695) --- .github/workflows/pr-update.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-update.yml b/.github/workflows/pr-update.yml index 02bfb2cd8..0a235b237 100644 --- a/.github/workflows/pr-update.yml +++ b/.github/workflows/pr-update.yml @@ -1,4 +1,4 @@ -name: PR Post Build +name: Update PR on: workflow_run: workflows: [PR Build] @@ -34,7 +34,9 @@ jobs: with zip.open("build-info.json") as info: info = json.load(info) - cmp = repo.compare(info["base"], f"{info["author"]}:{info["head"]}") + author = info["author"]; + head = info["head"] + cmp = repo.compare(info["base"], f"{author}:{head}") if cmp.status != "behind": pull = repo.get_pull(info["pr"])