Skip to content

Commit 0da84c7

Browse files
committed
breaking: Fail with no entries
1 parent 2b2fc10 commit 0da84c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ async function getMetric(metric) {
6565

6666
const response = await res.json();
6767
console.log("Got entries:", response.data.length);
68+
69+
if (response.data.length === 0) {
70+
core.setFailed("No entries");
71+
}
72+
6873
writeToCSV(response.data, metric);
6974
} catch (e) {
7075
console.error("Request failed".url);

0 commit comments

Comments
 (0)