Skip to content

Update schedule-call.yml #9

Update schedule-call.yml

Update schedule-call.yml #9

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
with:
script: |
const date = inputs.meeting_date;
const time = inputs.meeting_time;
const purpose = inputs.purpose;
const image = inputs.image_url;
const [year, month, day] = date.split('-');
const formattedDate = `${day}-${month}-${year}`;
const timeZoneLink = `https://www.timeanddate.com/worldclock/fixedtime.html?iso=${date}T${time.replace(' ', '')}&p1=1440`;
const title = `OpenNest-Africa Community Meeting – ${date}`;
let body = `
## 🗓️ OpenNest-Africa Community Meeting
${image ? `![Meeting banner](${image})\n` : ''}
| **Info** | **Details** |

Check failure on line 45 in .github/workflows/schedule-call.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/schedule-call.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
|------------------|-------------|
| **Purpose** | ${purpose} |
| **Time** | **${time}**, Wednesday **${formattedDate}** |
| **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._
`;
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: title,
body: body
});