Skip to content

Commit 1fdb72b

Browse files
committed
fix: ignore cancelled dates
Signed-off-by: exploreriii <[email protected]>
1 parent 48cd6f6 commit 1fdb72b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/scripts/bot-office-hours.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ ANCHOR_DATE="2025-12-03"
77
MEETING_LINK="https://zoom-lfx.platform.linuxfoundation.org/meeting/99912667426?password=5b584a0e-1ed7-49d3-b2fc-dc5ddc888338"
88
CALENDAR_LINK="https://zoom-lfx.platform.linuxfoundation.org/meetings/hiero?view=week"
99

10+
CANCELLED_DATES=(
11+
"2025-12-31"
12+
)
13+
1014
EXCLUDED_AUTHORS=(
1115
"rbair23"
1216
"nadineloepfe"
@@ -21,6 +25,15 @@ if [ "$DRY_RUN" = "true" ]; then
2125
echo "No comments will be posted."
2226
fi
2327

28+
TODAY=$(date -u +"%Y-%m-%d")
29+
for CANCELLED in "${CANCELLED_DATES[@]}"; do
30+
if [ "$TODAY" = "$CANCELLED" ]; then
31+
echo "Office Hours cancelled on $TODAY. Exiting."
32+
exit 0
33+
fi
34+
done
35+
36+
2437
IS_MEETING_WEEK=$(python3 - <<EOF
2538
from datetime import date
2639
d1 = date.fromisoformat("$ANCHOR_DATE")

0 commit comments

Comments
 (0)