Skip to content

Commit 2f9ebf8

Browse files
authored
Update check_ppktstore_version.py
trying this , might solve
1 parent dc279cd commit 2f9ebf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check_ppktstore_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
r = requests.get(
2020
f"https://api.github.com/repos/{this_repo}/actions/variables/{var_name}",
2121
headers={
22-
"Authorization": f"Bearer {token}",
22+
"Authorization": f"token {token}",
2323
"Accept": "application/vnd.github+json"
2424
}
2525
)
@@ -54,14 +54,14 @@
5454
payload = {"name": var_name, "value": latest}
5555
res = requests.patch(
5656
f"https://api.github.com/repos/{this_repo}/actions/variables/{var_name}",
57-
headers={"Authorization": f"Bearer {token}",
57+
headers={"Authorization": f"token {token}",
5858
"Accept": "application/vnd.github+json"},
5959
json=payload
6060
)
6161
if res.status_code == 404:
6262
requests.post(
6363
f"https://api.github.com/repos/{this_repo}/actions/variables",
64-
headers={"Authorization": f"Bearer {token}",
64+
headers={"Authorization": f"token {token}",
6565
"Accept": "application/vnd.github+json"},
6666
json=payload
6767
)

0 commit comments

Comments
 (0)