Skip to content

Commit 85a41a2

Browse files
authored
updated the weekly sync to monthly sync (#3709)
1 parent db600ca commit 85a41a2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/create_weekly_sync.yml renamed to .github/workflows/create_monthly_sync.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Create Weekly Sync discussion
1+
name: Create Monthly Sync discussion
22

3-
# Every Wednesday at 12AM UTC
3+
# First Wednesday of every month at 12AM UTC
44
on:
55
schedule:
6-
- cron: "0 0 * * 3"
6+
- cron: "0 0 1-7 * 3"
77

88
jobs:
99
create-discussion:
@@ -24,15 +24,15 @@ jobs:
2424
query GetRepositoryInformation ($name: String!, $owner: String!) {
2525
repository(name: $name, owner: $owner) {
2626
id
27-
discussionCategory(slug: "weekly-sync") {
27+
discussionCategory(slug: "monthly-sync") {
2828
id
2929
}
3030
}
3131
}
3232
3333
- name: Get current date
3434
id: current-date
35-
run: echo "date=$(date -d "next Tue" +'%d %B %Y')" >> $GITHUB_OUTPUT
35+
run: echo "date=$(date +'%B %Y')" >> $GITHUB_OUTPUT
3636

3737
- name: Create repository discussion
3838
id: create-repository-discussion
@@ -41,8 +41,8 @@ jobs:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
with:
4343
variables: |
44-
body: "<b>Please add agenda items below and give your weekly update in a comment. Thank you!</b><br/><h2>Agenda</h2>"
45-
title: "Weekly Sync - ${{ steps.current-date.outputs.date }}"
44+
body: "<b>Please add agenda items below and give your monthly update in a comment. Thank you!</b><br/><h2>Agenda</h2>"
45+
title: "Monthly Sync - ${{ steps.current-date.outputs.date }}"
4646
repositoryId: ${{ fromJSON(steps.get-repository-info.outputs.data).repository.id }}
4747
categoryId: ${{ fromJSON(steps.get-repository-info.outputs.data).repository.discussionCategory.id }}
4848
query: |

0 commit comments

Comments
 (0)