Skip to content

Commit 59729be

Browse files
authored
Merge pull request #260 from sreejith-rajashekaran/fix-workflow-signed
Update community call workflow to run on 3rd Wednesday (one day before the Community call) of each month
2 parents 5a6ec8d + 97bb1d7 commit 59729be

1 file changed

Lines changed: 35 additions & 9 deletions

File tree

.github/workflows/bot-en.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,69 @@
22
name: Weekly Community Call (EN)
33
on:
44
schedule:
5-
- cron: 0 12 * * 4
5+
- cron: 0 15 * * 3
6+
workflow_dispatch:
67

78
jobs:
89
en-community-cal:
910
name: Community Call Raise
1011
runs-on: ubuntu-latest
1112
steps:
12-
- name: Meeting date
13+
- name: Check if meeting week
14+
id: check_week
1315
run: |-
14-
if [ $(expr $(date +%W) % 3) -eq 0 ]; then
15-
echo "MEETINGDAY=$(date -d "+21 days" +"%b %d, %Y")" >> $GITHUB_ENV
16-
echo "MEETINGDAYNUM=$(date -d "+21 days" +"%Y%m%d")" >> $GITHUB_ENV
16+
# Check if today is Wednesday and tomorrow is the 3rd Thursday of the month
17+
TODAY=$(date +%Y-%m-%d)
18+
TOMORROW=$(date -d "+1 day" +%Y-%m-%d)
19+
20+
# Check if today is Wednesday
21+
if [ $(date +%u) -eq 3 ]; then
22+
# Check if tomorrow is Thursday
23+
if [ $(date -d "$TOMORROW" +%u) -eq 4 ]; then
24+
# Get the day of the month for tomorrow
25+
DAY_OF_MONTH=$(date -d "$TOMORROW" +%d)
26+
27+
# Third Thursday is between 15th and 21st of the month
28+
if [ $DAY_OF_MONTH -ge 15 ] && [ $DAY_OF_MONTH -le 21 ]; then
29+
echo "should_run=true" >> $GITHUB_OUTPUT
30+
else
31+
echo "should_run=false" >> $GITHUB_OUTPUT
32+
fi
33+
else
34+
echo "should_run=false" >> $GITHUB_OUTPUT
35+
fi
1736
else
18-
exit 1
37+
echo "should_run=false" >> $GITHUB_OUTPUT
1938
fi
2039
40+
- name: Meeting date
41+
if: steps.check_week.outputs.should_run == 'true'
42+
run: |-
43+
echo "MEETINGDAY=$(date -d "+1 day" +"%b %d, %Y")" >> $GITHUB_ENV
44+
echo "MEETINGDAYNUM=$(date -d "+1 day" +"%Y%m%d")" >> $GITHUB_ENV
45+
2146
- name: New Community call issue
47+
if: steps.check_week.outputs.should_run == 'true'
2248
uses: imjohnbo/issue-bot@v3
2349
with:
2450
labels: "comminity call"
2551
title: ${{ env.MEETINGDAY }} Community Meeting Agenda
2652
body: |-
2753
KubeVela Community Meetings
2854
29-
Every two weeks we host a community meeting to showcase new features, review upcoming milestones, and engage in Q&A with the KubeVela community - all are welcome, and we encourage participation.
55+
Every month on the third Thursday we host a community meeting to showcase new features, review upcoming milestones, and engage in Q&A with the KubeVela community - all are welcome, and we encourage participation.
3056
3157
The purpose of this thread is to form a discussion amongst the KubeVela community on potential topics to highlight during the meeting. If you have a topic you wish to present or learn more about, please comment and be sure to include your name and a short description of the topic.
3258
33-
The conversations in this thread will directly influence the meeting agenda for the community call on Tuesday ${{ env.MEETINGDAY }} 07:30 AM PST. The meeting agenda will be finalized by a Community Call Host days prior to the meeting.
59+
The conversations in this thread will directly influence the meeting agenda for the community call on Thursday ${{ env.MEETINGDAY }} 08:00 AM PST. The meeting agenda will be finalized by a Community Call Host days prior to the meeting.
3460
3561
Thank you and we look forward to hearing your input.
3662
3763
| Asset | Link |
3864
|:-----------|:------------|
3965
| 🔗 Meeting Link & Password (*English*) | **Zoom Call:** https://zoom.us/j/5706981108?pwd=N0lOVit3Titwb3B2VitZbHhKU3k1Zz09
4066
| 🎥 Meeting Recordings (*English*) | https://docs.google.com/document/d/1nqdFEyULekyksFHtFvgvFAYE-0AMHKoS3RMnaKsarjs
41-
| Meeting time | Tuesday ${{ env.MEETINGDAY }} 07:30 AM Pacific Time (PST) - [See it in your local time](https://www.timeanddate.com/worldclock/fixedtime.html?iso=${{ env.MEETINGDAYNUM }}T0730&p1=234)
67+
| Meeting time | Thursday ${{ env.MEETINGDAY }} 08:00 AM Pacific Time (PST) - [See it in your local time](https://www.timeanddate.com/worldclock/fixedtime.html?iso=${{ env.MEETINGDAYNUM }}T0800&p1=234)
4268
4369
pinned: true
4470
close-previous: false

0 commit comments

Comments
 (0)