Skip to content

Commit 88e789a

Browse files
committed
Fail Meetup sync without group links
1 parent 4e09695 commit 88e789a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/scripts/sync-meetup-events.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ async function calendarFiles() {
153153

154154
async function main() {
155155
const configuredGroups = await groups();
156+
if (configuredGroups.length === 0) {
157+
throw new Error(`No Meetup group links found in ${USER_GROUPS_DIR}.`);
158+
}
156159
const groupEvents = await Promise.all(configuredGroups.map(fetchGroupEvents));
157160
await mkdir(CALENDAR_DIR, { recursive: true });
158161

0 commit comments

Comments
 (0)