Skip to content

Commit b090cef

Browse files
committed
meeting generator
1 parent 2715321 commit b090cef

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/meeting.ics

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BEGIN:VCALENDAR
2+
VERSION:2.0
3+
BEGIN:VEVENT
4+
DTSTAMP:20250729T000000Z
5+
DTSTART:20250804T190000Z
6+
DTEND:20250804T200000Z
7+
RRULE:FREQ=WEEKLY;INTERVAL=4
8+
LOCATION:TBD
9+
END:VEVENT
10+
END:VCALENDAR
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Create Meeting
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 3 * * 1' # Every Monday at 03:00 UTC
7+
8+
permissions:
9+
pull-requests: read
10+
issues: write
11+
12+
jobs:
13+
create-meeting:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check if this is a valid 4-week cycle
17+
id: check
18+
run: |
19+
WEEK=$(date +%U)
20+
OFFSET=30 # 1 week before we start meetings
21+
diff=$(( WEEK - OFFSET ))
22+
mod=$(( (diff % 4 + 4) % 4 ))
23+
if (( mod != 0 )); then
24+
echo "Not a 4th-week-aligned Monday. Skipping."
25+
echo "run=true" >> $GITHUB_OUTPUT
26+
exit 0
27+
else
28+
echo "run=false" >> $GITHUB_OUTPUT
29+
fi
30+
31+
- name: Checkout code
32+
if: steps.check.outputs.run == 'true' || github.event_name == 'workflow_dispatch'
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
35+
- name: Create meeting issue
36+
if: steps.check.outputs.run == 'true' || github.event_name == 'workflow_dispatch'
37+
uses: target/create-meeting-issue@b2959d353c7863f7f96f17d42d7618fd57799201
38+
with:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
MEETING_PATH: .github/meeting.ics
41+
TIMEZONES: Etc/UTC
42+
AGENDA_LABEL: web-agenda
43+
ORG_WIDE: true
44+
DRY_RUN: true

0 commit comments

Comments
 (0)