File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919r = 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)
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 )
You can’t perform that action at this time.
0 commit comments