Skip to content

Commit 5d7f014

Browse files
authored
Fix API endpoint for updating version variable
1 parent f75bb11 commit 5d7f014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check_ppktstore_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def fetch_with_retry(url, headers, max_retries=3, timeout=10):
9393
if new_release:
9494
payload = {"name": ppkt_last_run_version, "value": latest}
9595
res = requests.patch(
96-
f"https://api.github.com/repos/{this_repo}/actions/variables/{ppkt_last_run_version}",
96+
f"https://api.github.com/repos/{this_repo}/actions/variables/{latest}",
9797
headers={"Authorization": f"token {token}",
9898
"Accept": "application/vnd.github+json"},
9999
json=payload,

0 commit comments

Comments
 (0)