Skip to content

Update schedule-call.yml #11

Update schedule-call.yml

Update schedule-call.yml #11

Workflow file for this run

name: Schedule OpenNest-Africa Community Call
on:
workflow_dispatch:
inputs:
meeting_date:
description: 'Meeting date (YYYY-MM-DD)'
required: true
meeting_time:
description: 'Meeting time (e.g. 15:00 WAT)'
required: true
purpose:
description: 'Purpose of the meeting'
required: true
image_url:
description: 'Image URL (optional)'
required: false
jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- name: Create meeting issue
uses: actions/github-script@v7
with:
script: |
const meetingDate = process.env.INPUT_MEETING_DATE;
const meetingTime = process.env.INPUT_MEETING_TIME;
const purpose = process.env.INPUT_PURPOSE;
const imageUrl = process.env.INPUT_IMAGE_URL;
const title = `OpenNest-Africa Community Meeting – ${meetingDate}`;
const isoDate = `${meetingDate}T${meetingTime.split(':')[0]}:00:00`;
const timeZoneLink = `https://www.timeanddate.com/worldclock/fixedtime.html?iso=${isoDate}&p1=1440`;
const body = `
## 🗓️ OpenNest-Africa Community Meeting
${imageUrl ? `![Meeting Banner](${imageUrl})\n` : ''}
| **Info** | **Details** |

Check failure on line 43 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 43
|----------------|-------------|
| **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._
`;
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: title,
body: body,
});