v13.4
Brett 2024-09-26 20:48:23 -04:00
parent 3641bf1ec4
commit 1d58ab74c6
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(COSC-4P80-Assignment-1 VERSION 12.0.0)
project(COSC-4P80-Assignment-1 VERSION 13.0.0)
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)

View File

@ -174,7 +174,7 @@ def make_release(env: EnvData, name):
urls = []
for line in repos_v:
origin = ''.join(itertools.takewhile(str.isalpha, line.decode('utf8')))
urls.append("https://api.github.com/repos/" + open_process(["git", "remote", "get-url", origin])[0].decode('utf8').replace("\n", "").replace("https://github.com/", "") + "releases")
urls.append("https://api.github.com/repos/" + open_process(["git", "remote", "get-url", origin], False)[0].decode('utf8').replace("\n", "").replace("https://github.com/", "") + "/releases")
urls = set(urls)
print(f"Urls: {urls}")
data = {
@ -185,8 +185,9 @@ def make_release(env: EnvData, name):
'prerelease': False
}
headers = {
'Authorization': f'token {env.github_token}',
'Accept': 'application/vnd.github.v3+json'
'Authorization': f'Bearer {env.github_token}',
'Accept': 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28'
}
for url in urls:
response = requests.post(url, headers=headers, data=json.dumps(data))