Skip to content

Schedule OpenNest-Africa Community Call #15

Schedule OpenNest-Africa Community Call

Schedule OpenNest-Africa Community Call #15

Workflow file for this run

name: Schedule OpenNest-Africa Community Call
on:
workflow_dispatch:
inputs:
meeting_date:
description: 'Date of the meeting (YYYY-MM-DD)'
required: true
meeting_time:
description: 'Time of the meeting (e.g., 15:00 WAT)'
required: true
purpose:
description: 'Purpose of the meeting'
required: true
image_url:
description: 'Optional image URL (leave blank if none)'
required: false
jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- name: Create community meeting issue
uses: actions/github-script@v7
env:
MEETING_DATE: ${{ inputs.meeting_date }}
MEETING_TIME: ${{ inputs.meeting_time }}
PURPOSE: ${{ inputs.purpose }}
IMAGE_URL: ${{ inputs.image_url }}
with:
script: |
const meetingDate = process.env.MEETING_DATE;
const meetingTime = process.env.MEETING_TIME;
const purpose = process.env.PURPOSE;
const imageUrl = process.env.IMAGE_URL;
const title = `OpenNest-Africa Community Meeting – ${meetingDate}`;
const isoTime = meetingTime.split(' ')[0] + ':00';
const isoDateTime = `${meetingDate}T${isoTime}`;
const timeZoneLink = `https://www.timeanddate.com/worldclock/fixedtime.html?iso=${isoDateTime}&p1=1440`;
const body = [
"## 🗓️ OpenNest-Africa Community Meeting",
"",
imageUrl ? `![Meeting Banner](${imageUrl})` : "",
"",
"| **Info** | **Details** |",
"|----------------|-------------|",
`| **Purpose** | ${purpose} |`,
`| **Time** | **${meetingTime}**, **${meetingDate}** |`,
"| **Google Meet** | [Join live](https://calendar.app.google/LkFw6FXNEAeGoKL88) |",
"| **Recordings** | [YouTube Playlist](https://studio.youtube.com/playlist/PLfbn8DolsILjuDISqCfEx1ufI0a82ywRq/videos) |",
`| **Time Zone** | [🕒 See in your time zone](${timeZoneLink}) |`,
"",
"---",
"",
"## 📌 Agenda",
"",
"> Don’t wait for the meeting to discuss topics that already have issues. Feel free to comment on them earlier.",
"",
"1. Q&A",
"2. _Place for your topic_",
"3. Q&A",
"",
"---",
"",
"## 📝 Notes",
"",
"_Add notes here after the meeting._"
].join('\n');
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title,
body
});