Skip to content

Commit

Permalink
ci: add debug info to meetings workflows (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Sep 26, 2023
1 parent 5df2c26 commit f4fc539
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/create-event-helpers/zoom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ module.exports = async(date, time, host, cohost) => {
return core.setFailed(`Meeting creation failed: ${ error }`)
}

//core.debug(JSON.stringify(meetingDetails));
const meetingId = meetingDetails.id;
if (!meetingId) {
core.info(JSON.stringify(meetingDetails, null, 4));
return core.setFailed('meetingId is not available which means something went wrong in communication with Zoom');
}
const meetingUrl = meetingDetails.join_url;

const streamOptions = JSON.stringify({
Expand All @@ -94,7 +97,6 @@ module.exports = async(date, time, host, cohost) => {
return core.setFailed(`Meeting update with streaming info failed: ${ error }`)
}

if (!meetingId) return core.setFailed('meetingId is not available which means something went wrong in communication with Zoom. Most probably the host that you defined is not yet part of related Zoom account');
core.info(`Created meeting ${ meetingId } that you can join at ${ meetingUrl }`);
core.setOutput('meetingUrl', meetingUrl);
}
}

0 comments on commit f4fc539

Please sign in to comment.