FEAT: #12 Added software tests
Some checks failed
Build and Push Development Docker Image / build-and-push (push) Failing after 3m3s
Some checks failed
Build and Push Development Docker Image / build-and-push (push) Failing after 3m3s
This commit is contained in:
@@ -54,13 +54,7 @@ export async function checkImage(repo: GitRepo): Promise<boolean> {
|
||||
const URL = repo.html_url + IMAGE_URL_SUFFIX;
|
||||
console.log("Checking image:", URL);
|
||||
const response = await fetch(URL);
|
||||
if (response.ok) {
|
||||
console.log("Image found!");
|
||||
return true;
|
||||
} else {
|
||||
console.log("Image not found!");
|
||||
return false;
|
||||
}
|
||||
return response.ok;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user