Skip to content

Commit

Permalink
ci: add debug info to meetings workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg committed Sep 26, 2023
1 parent 5df2c26 commit e8bacdf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/create-event-helpers/zoom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const core = require('@actions/core');
* @param {string} cohost coma-separated list of email addresses of alternative hosts
*/
module.exports = async(date, time, host, cohost) => {

const meetingTitle = process.env.MEETING_NAME;
let meetingDetails, token;

Expand Down 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 e8bacdf

Please sign in to comment.