We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d49f6 commit 2619917Copy full SHA for 2619917
src/index.js
@@ -37,6 +37,11 @@ const run = async () => {
37
res = await fetch(`https://api.render.com/v1/services/${serviceId}/deploys?limit=20`, { method: 'GET', ...options });
38
data = await res.json();
39
40
+ if (!data) {
41
+ core.setFailed(`This operation did not succeed. Please check if the serviceId and apiKey inputs were correclty set`);
42
+ return;
43
+ }
44
+
45
if (res.status !== 200) {
46
core.setFailed(`This operation did not succeed. Reason: ${data.message}`);
47
return;
0 commit comments