Skip to content

Commit 8e6e341

Browse files
aegilopsCopilot
andauthored
Update src/componentSubmission.ts
Co-authored-by: Copilot <[email protected]>
1 parent f3673af commit 8e6e341

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/componentSubmission.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export async function submitSnapshotIfPossible(opts: SubmitOpts): Promise<boolea
6868
try {
6969
const intersect = await getLanguageIntersection(opts.octokit, opts.owner, opts.repo, opts.languages);
7070
// Create temp dir and sparse checkout only manifest files according to selected languages
71-
71+
if (!intersect.length) {
72+
// No matching languages, skip submission
73+
return false;
74+
}
7275
console.debug(chalk.green(`Sparse checkout into ${tmp} for languages: ${intersect.join(', ')}`));
7376

7477
const sha = await sparseCheckout(opts.owner, opts.repo, opts.branch, tmp, intersect, opts.baseUrl);

0 commit comments

Comments
 (0)