diff --git a/index.js b/index.js index eed037d..dd5608b 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,13 @@ async function run() { console.log('thanks for sponsoring us :)'); } catch (error) { - throw new Error("You are not a sponsor, Please consider sponsoring us to use this action, https://github.com/sponsors/DeployRepository , Start sponsoring us and try again [1$ or more]"); + if (error.response && error.response.status === 403) { + throw new Error("You are not a sponsor, Please consider sponsoring us to use this action, https://github.com/sponsors/DeployRepository , Start sponsoring us and try again [1$ or more]"); + } else if (error.response && error.response.status === 500) { + console.error("An error occurred while checking sponsorship, but the deployment will continue."); + } else { + throw error; + } } console.log("Connecting to the server...");