fix testing our own PRs

This commit is contained in:
AAGaming
2024-06-27 00:38:31 -04:00
committed by GitHub
parent 5d77577ef5
commit 785ef02b7c
+1 -1
View File
@@ -289,7 +289,7 @@ class Updater:
#Get all the associated workflow run for the given sha_id code hash #Get all the associated workflow run for the given sha_id code hash
async with ClientSession() as web: async with ClientSession() as web:
async with web.request("GET", "https://api.github.com/repos/SteamDeckHomebrew/decky-loader/actions/runs", async with web.request("GET", "https://api.github.com/repos/SteamDeckHomebrew/decky-loader/actions/runs",
headers={'X-GitHub-Api-Version': '2022-11-28'}, params={'event':'pull_request', 'head_sha': sha_id}, ssl=helpers.get_ssl_context()) as res: headers={'X-GitHub-Api-Version': '2022-11-28'}, params={'head_sha': sha_id}, ssl=helpers.get_ssl_context()) as res:
works = await res.json() works = await res.json()
#Iterate over the workflow_run to get the two builds if they exists #Iterate over the workflow_run to get the two builds if they exists
for work in works['workflow_runs']: for work in works['workflow_runs']: