Skip to content

Commit 844f7db

Browse files
authored
Update ocwm-creator.yml to create the issue title properly
1 parent 52b57e9 commit 844f7db

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ocwm-creator.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
# Get the first day of the next month
3737
next_month=$(date -u -d "$(date +%Y-%m-01) +1 month" +%Y-%m-01)
3838
39-
# Find the first Tuesday of the next month
40-
first_tuesday=$(date -u -d "$next_month +$(( (9 - $(date -u -d "$next_month" +%u)) % 7 )) days" +%Y-%m-%d)
41-
42-
# Calculate the third Tuesday by adding 14 days to the first Tuesday
43-
third_tuesday=$(date -u -d "$first_tuesday +14 days" +%Y-%m-%d)
44-
45-
# Output the issue title with the third Tuesday's date
46-
echo "title=Open Community Working Meeting ${third_tuesday} - 12:00 PT" >> "$GITHUB_OUTPUT"
39+
# Find the first Monday of the next month
40+
first_monday=$(date -u -d "$next_month +$(( (8 - $(date -u -d "$next_month" +%u)) % 7 )) days" +%Y-%m-%d)
41+
42+
# Calculate the third Monday by adding 14 days to the first Monday
43+
third_monday=$(date -u -d "$first_monday +14 days" +%Y-%m-%d)
44+
45+
# Output the issue title with the third Monday's date
46+
echo "title=Open Community Working Meeting ${third_monday} - 12:00 PT" >> "$GITHUB_OUTPUT"
4747
4848
# Step to check if it's the third Tuesday of the month
4949
- name: Check if today is the third Tuesday

0 commit comments

Comments
 (0)