mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
only fail on 4xx, 5xx and other real errors
This commit is contained in:
parent
d681750ba2
commit
0e4168908c
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ function getStatusCode(url) {
|
||||||
async function isWorkingUrl(url) {
|
async function isWorkingUrl(url) {
|
||||||
try {
|
try {
|
||||||
const statusCode = await getStatusCode(url);
|
const statusCode = await getStatusCode(url);
|
||||||
if (statusCode < 200 || statusCode >= 300) {
|
if (statusCode < 200 || statusCode >= 400) {
|
||||||
core.error(`Ping to "${url}" failed with status: ${statusCode}`);
|
core.error(`Ping to "${url}" failed with status: ${statusCode}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue