Skip to content

Commit 545bc6a

Browse files
authored
Merge pull request #148 from baywet/ci/agenda-schedule
adds a schedule for the bi-weekly agenda discussion creation
2 parents 131e87f + 98a24a0 commit 545bc6a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/agenda.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Create meeting template
22

33
on:
44
workflow_dispatch: {}
5+
schedule:
6+
# every two weeks on tuesday at 10AM PST (with DST)
7+
- cron: '0 17 */14 * 2'
58

69
jobs:
710
create-discussion:
@@ -16,6 +19,11 @@ jobs:
1619
echo 'AGENDA<<EOF' >> $GITHUB_ENV
1720
cat .github/templates/agenda.md >> $GITHUB_ENV
1821
echo 'EOF' >> $GITHUB_ENV
22+
- name: Get Next Meeting Date
23+
id: get-next-meeting-date
24+
run: |
25+
NEXT_MEETING_DATE=$(date -d "next Tuesday" +%Y-%m-%d)
26+
echo "NEXT_MEETING_DATE=$NEXT_MEETING_DATE" >> $GITHUB_ENV
1927
- name: Create discussion with agenda
2028
id: create-repository-discussion
2129
uses: octokit/[email protected]
@@ -24,7 +32,7 @@ jobs:
2432
with:
2533
variables: |
2634
body: "${{ env.AGENDA }}"
27-
title: "Overlays Meeting"
35+
title: "Overlays Meeting (${{ env.NEXT_MEETING_DATE }})"
2836
repositoryId: 'MDEwOlJlcG9zaXRvcnkzNTk4NjU5MDI='
2937
categoryId: 'DIC_kwDOFXMeLs4COVB8'
3038
query: |

0 commit comments

Comments
 (0)