Skip to content

Commit 530fb76

Browse files
committed
feat: return empty githubActions when unable to find any node versions
1 parent 23b16f8 commit 530fb76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/github-actions/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ exports.detect = async (meta) => {
77
const files = await meta.loadFolder('.github/workflows');
88
const rawSet = new Set();
99

10+
if (!files.length) {
11+
return;
12+
}
13+
1014
for (const file of files) {
1115

1216
if (!file.endsWith('.yaml') && !file.endsWith('.yml')) {
@@ -51,10 +55,6 @@ exports.detect = async (meta) => {
5155

5256
const raw = [...rawSet];
5357

54-
if (!raw.length) {
55-
return '';
56-
}
57-
5858
const resolved = {};
5959

6060
for (const version of raw) {

0 commit comments

Comments
 (0)