Skip to content

Commit 382e55b

Browse files
1 parent a9134d9 commit 382e55b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/spectral/ipa/metrics/scripts/getShouldRunMetricsRelease.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ export default async function getShouldRunMetricsRelease({ github, context }) {
88
page: 1,
99
});
1010

11-
console.log('Response:', response);
12-
13-
if (response === undefined) {
11+
if (response === undefined || response.data === undefined) {
1412
return true;
1513
}
1614

17-
const { data: runs } = response;
15+
const { workflow_runs: runs } = response.data;
1816

1917
console.log('Runs:', runs);
2018

0 commit comments

Comments
 (0)