Skip to content

Commit aead41a

Browse files
authored
Update schedule-call.yml
1 parent a21d370 commit aead41a

File tree

1 file changed

+56
-32
lines changed

1 file changed

+56
-32
lines changed
Lines changed: 56 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
name: Schedule OpenNest-Africa Community Call
22

33
on:
4-
schedule:
5-
- cron: '0 14 */14 * 3' # every 14 days on Wednesday at 14:00 UTC (3PM WAT)
64
workflow_dispatch:
5+
inputs:
6+
meeting_date:
7+
description: 'Date of the meeting (YYYY-MM-DD)'
8+
required: true
9+
meeting_time:
10+
description: 'Time of the meeting (e.g., 15:00 WAT)'
11+
required: true
12+
purpose:
13+
description: 'Purpose of the meeting'
14+
required: true
15+
image_url:
16+
description: 'Optional image URL (leave blank if none)'
17+
required: false
718

819
jobs:
920
create_issue:
@@ -14,38 +25,51 @@ jobs:
1425
uses: actions/github-script@v7
1526
with:
1627
script: |
17-
const meetingDate = '2025-07-16';
18-
const title = `OpenNest-Africa Community Meeting – ${meetingDate}`;
19-
const body = [
20-
"## 🗓️ OpenNest-Africa Community Meeting",
21-
"",
22-
"| **Info** | **Details** |",
23-
"|----------------|-------------|",
24-
"| **Purpose** | OpenNest-Africa Community Meeting |",
25-
`| **Time** | **03:00 PM WAT**, Wednesday **${meetingDate}** |`,
26-
"| **Google Meet** | [Join live](https://calendar.app.google/LkFw6FXNEAeGoKL88) |",
27-
"| **Recordings** | [YouTube Playlist](https://studio.youtube.com/playlist/PLfbn8DolsILjuDISqCfEx1ufI0a82ywRq/videos) |",
28-
"",
29-
"---",
30-
"",
31-
"## 📌 Agenda",
32-
"",
33-
"> Don’t wait for the meeting to discuss topics that already have issues. Feel free to comment on them earlier.",
34-
"",
35-
"1. Q&A",
36-
"2. _Place for your topic_",
37-
"3. Q&A",
38-
"",
39-
"---",
40-
"",
41-
"## 📝 Notes",
42-
"",
43-
"_Add notes here after the meeting._"
44-
].join('\n');
28+
const date = inputs.meeting_date;
29+
const time = inputs.meeting_time;
30+
const purpose = inputs.purpose;
31+
const image = inputs.image_url;
32+
33+
const [year, month, day] = date.split('-');
34+
const formattedDate = `${day}-${month}-${year}`;
35+
36+
const timeZoneLink = `https://www.timeanddate.com/worldclock/fixedtime.html?iso=${date}T${time.replace(' ', '')}&p1=1440`;
37+
38+
const title = `OpenNest-Africa Community Meeting – ${date}`;
39+
40+
let body = `
41+
## 🗓️ OpenNest-Africa Community Meeting
42+
43+
${image ? `![Meeting banner](${image})\n` : ''}
44+
45+
| **Info** | **Details** |
46+
|------------------|-------------|
47+
| **Purpose** | ${purpose} |
48+
| **Time** | **${time}**, Wednesday **${formattedDate}** |
49+
| **Google Meet** | [Join live](https://calendar.app.google/LkFw6FXNEAeGoKL88) |
50+
| **Recordings** | [YouTube Playlist](https://studio.youtube.com/playlist/PLfbn8DolsILjuDISqCfEx1ufI0a82ywRq/videos) |
51+
| **Time Zone** | [🕒 See in your time zone](${timeZoneLink}) |
52+
53+
---
54+
55+
## 📌 Agenda
56+
57+
> Don’t wait for the meeting to discuss topics that already have issues. Feel free to comment on them earlier.
58+
59+
1. Q&A
60+
2. _Place for your topic_
61+
3. Q&A
62+
63+
---
64+
65+
## 📝 Notes
66+
67+
_Add notes here after the meeting._
68+
`;
4569
4670
await github.rest.issues.create({
4771
owner: context.repo.owner,
4872
repo: context.repo.repo,
49-
title,
50-
body
73+
title: title,
74+
body: body
5175
});

0 commit comments

Comments
 (0)